Fix NPE #2310
This commit is contained in:
parent
0e833de22a
commit
a3a4a70921
|
@ -302,8 +302,7 @@ public class IslandTeamCommand extends CompositeCommand {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (clickType.equals(ClickType.SHIFT_LEFT) && user.hasPermission(this.acceptCommand.getPermission())) {
|
if (clickType.equals(ClickType.SHIFT_LEFT) && user.hasPermission(this.acceptCommand.getPermission())) {
|
||||||
getPlugin().log("Invite accepted: " + user.getName() + " accepted " + invite.getType()
|
getPlugin().log("Invite accepted: " + user.getName() + " accepted " + invite.getType());
|
||||||
+ " invite to island at " + island.getCenter());
|
|
||||||
// Accept
|
// Accept
|
||||||
switch (invite.getType()) {
|
switch (invite.getType()) {
|
||||||
case COOP -> this.acceptCommand.acceptCoopInvite(user, invite);
|
case COOP -> this.acceptCommand.acceptCoopInvite(user, invite);
|
||||||
|
|
Loading…
Reference in New Issue