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(); Player player = event.getPlayer();
// Check dPlayers // Check dPlayers
DPlayer dPlayer = DPlayer.getByPlayer(player); DPlayer dPlayer = DPlayer.getByName(player.getName());
if (dPlayer != null) { if (dPlayer != null) {
DGroup dGroup = DGroup.getByPlayer(dPlayer.getPlayer()); DGroup dGroup = DGroup.getByPlayer(dPlayer.getPlayer());
if (dGroup != null) { if (dGroup != null) {