mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +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();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
// Check dplayers
|
// Check dplayers
|
||||||
DPlayer dplayer = DPlayer.get(event.getPlayer().getName());
|
DPlayer dplayer = DPlayer.get(player.getName());
|
||||||
if (dplayer != null) {
|
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
|
// Check offlineTime
|
||||||
dplayer.offlineTime = 0;
|
dplayer.offlineTime = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user