mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-24 19:46:34 +01:00
Fixes #407
This commit is contained in:
parent
1fdc0a59ec
commit
81dcf26a2a
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user