mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Fixes a bug that makes a Dungeon unfinishable
Also Groupsigns wouldnt clear after playing
This commit is contained in:
parent
1a770fd0f8
commit
36d29224b2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user