mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 12:20:30 +01:00
Fix global sign NPEs
This commit is contained in:
parent
a92212c0e3
commit
110913b9c7
@ -152,8 +152,8 @@ public class GameSign extends JoinSign {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
game = new DGame(plugin, dGroup);
|
|
||||||
dGroup.setDungeon(dungeon);
|
dGroup.setDungeon(dungeon);
|
||||||
|
game = new DGame(plugin, dGroup);
|
||||||
update();
|
update();
|
||||||
|
|
||||||
} else if (topSign.getLine(0).equals(DMessage.SIGN_GLOBAL_JOIN_GAME.getMessage())) {
|
} else if (topSign.getLine(0).equals(DMessage.SIGN_GLOBAL_JOIN_GAME.getMessage())) {
|
||||||
|
@ -97,7 +97,7 @@ public class LeaveSign extends GlobalProtection {
|
|||||||
gamePlayer.leave();
|
gamePlayer.leave();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
PlayerGroup group = gamePlayer.getGroup();
|
PlayerGroup group = plugin.getPlayerGroup(player);
|
||||||
if (group != null) {
|
if (group != null) {
|
||||||
group.removePlayer(player);
|
group.removePlayer(player);
|
||||||
MessageUtil.sendMessage(player, DMessage.PLAYER_LEAVE_GROUP.getMessage());
|
MessageUtil.sendMessage(player, DMessage.PLAYER_LEAVE_GROUP.getMessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user