Fix global sign NPEs

This commit is contained in:
Daniel Saukel 2020-03-23 20:59:03 +01:00
parent a92212c0e3
commit 110913b9c7
2 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ public class GameSign extends JoinSign {
return;
}
game = new DGame(plugin, dGroup);
dGroup.setDungeon(dungeon);
game = new DGame(plugin, dGroup);
update();
} else if (topSign.getLine(0).equals(DMessage.SIGN_GLOBAL_JOIN_GAME.getMessage())) {

View File

@ -97,7 +97,7 @@ public class LeaveSign extends GlobalProtection {
gamePlayer.leave();
} else {
PlayerGroup group = gamePlayer.getGroup();
PlayerGroup group = plugin.getPlayerGroup(player);
if (group != null) {
group.removePlayer(player);
MessageUtil.sendMessage(player, DMessage.PLAYER_LEAVE_GROUP.getMessage());