Fixes a bug that makes a Dungeon unfinishable

Also Groupsigns wouldnt clear after playing
This commit is contained in:
Sn0wStorm 2013-05-18 10:49:24 +02:00
parent 1a770fd0f8
commit 36d29224b2

View File

@ -314,9 +314,14 @@ public class PlayerListener implements Listener {
Player player = event.getPlayer();
// Check dplayers
DPlayer dplayer = DPlayer.get(event.getPlayer().getName());
DPlayer dplayer = DPlayer.get(player.getName());
if (dplayer != null) {
dplayer.player = event.getPlayer();
DGroup dgroup = DGroup.get(dplayer.player);
if (dgroup != null) {
dgroup.getPlayers().remove(dplayer.player);
dgroup.getPlayers().add(player);
}
dplayer.player = player;
// Check offlineTime
dplayer.offlineTime = 0;