This commit is contained in:
Jesse Boyd 2017-02-04 17:44:33 +11:00
parent 1fdc0a59ec
commit 81dcf26a2a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
7 changed files with 21 additions and 7 deletions

View File

@ -391,7 +391,9 @@ public class FaweBukkit implements IFawe, Listener {
public void onPlayerQuit(PlayerQuitEvent event) {
Player player = event.getPlayer();
FawePlayer fp = FawePlayer.wrap(player);
fp.unregister();
if (fp != null) {
fp.unregister();
}
Fawe.get().unregister(event.getPlayer().getName());
}

View File

@ -54,7 +54,9 @@ public class ForgeMain {
public void handleQuit(EntityPlayerMP player) {
FawePlayer fp = FawePlayer.wrap(player);
fp.unregister();
if (fp != null) {
fp.unregister();
}
Fawe.get().unregister(player.getName());
}

View File

@ -53,7 +53,9 @@ public class ForgeMain {
public void handleQuit(EntityPlayerMP player) {
FawePlayer fp = FawePlayer.wrap(player);
fp.unregister();
if (fp != null) {
fp.unregister();
}
Fawe.get().unregister(player.getName());
}

View File

@ -55,7 +55,9 @@ public class ForgeMain {
public void handleQuit(EntityPlayerMP player) {
FawePlayer fp = FawePlayer.wrap(player);
fp.unregister();
if (fp != null) {
fp.unregister();
}
Fawe.get().unregister(player.getCommandSenderName());
}

View File

@ -55,7 +55,9 @@ public class ForgeMain {
public void handleQuit(EntityPlayerMP player) {
FawePlayer fp = FawePlayer.wrap(player);
fp.unregister();
if (fp != null) {
fp.unregister();
}
Fawe.get().unregister(player.getName());
}

View File

@ -54,7 +54,9 @@ public class ForgeMain {
public void handleQuit(EntityPlayerMP player) {
FawePlayer fp = FawePlayer.wrap(player);
fp.unregister();
if (fp != null) {
fp.unregister();
}
Fawe.get().unregister(player.getName());
}

View File

@ -37,7 +37,9 @@ public class FaweNukkit implements IFawe, Listener {
public void onPlayerQuit(PlayerQuitEvent event) {
Player player = event.getPlayer();
FawePlayer fp = FawePlayer.wrap(player);
fp.unregister();
if (fp != null) {
fp.unregister();
}
Fawe.get().unregister(event.getPlayer().getName());
}