Fixed group leave bug

This commit is contained in:
Daniel Saukel 2015-12-31 16:12:35 +01:00
parent b36be75a57
commit 3d7c18a327

View File

@ -427,7 +427,7 @@ public class PlayerListener implements Listener {
Player player = event.getPlayer();
// Check dPlayers
DPlayer dPlayer = DPlayer.getByPlayer(player);
DPlayer dPlayer = DPlayer.getByName(player.getName());
if (dPlayer != null) {
DGroup dGroup = DGroup.getByPlayer(dPlayer.getPlayer());
if (dGroup != null) {