mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Fixed NPE when an invite gets rejected
This commit is contained in:
parent
07547472b8
commit
4b9e8f1e0e
@ -47,7 +47,9 @@ public class IslandTeamInviteRejectCommand extends CompositeCommand {
|
|||||||
user.sendMessage("commands.island.team.invite.reject.you-rejected-invite");
|
user.sendMessage("commands.island.team.invite.reject.you-rejected-invite");
|
||||||
|
|
||||||
User inviter = User.getInstance(itc.getInviteCommand().getInviteList().get(playerUUID));
|
User inviter = User.getInstance(itc.getInviteCommand().getInviteList().get(playerUUID));
|
||||||
inviter.sendMessage("commands.island.team.invite.reject.name-rejected-your-invite", TextVariables.NAME, user.getName());
|
if (inviter != null) {
|
||||||
|
inviter.sendMessage("commands.island.team.invite.reject.name-rejected-your-invite", TextVariables.NAME, user.getName());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Someone typed /island reject and had not been invited
|
// Someone typed /island reject and had not been invited
|
||||||
// TODO: make the error nicer if there are invites in other worlds
|
// TODO: make the error nicer if there are invites in other worlds
|
||||||
|
Loading…
Reference in New Issue
Block a user