mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +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;
|
||||
}
|
||||
|
||||
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())) {
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user