Fixes #905
This commit is contained in:
parent
21e976ce4d
commit
371b4f5ee5
@ -122,7 +122,7 @@ public class FaweNukkit implements IFawe, Listener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerQuit(PlayerQuitEvent event) {
|
public void onPlayerQuit(PlayerQuitEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
FawePlayer fp = FawePlayer.wrap(player);
|
FawePlayer fp = Fawe.get().getCachedPlayer(player.getName());
|
||||||
if (fp != null) {
|
if (fp != null) {
|
||||||
fp.unregister();
|
fp.unregister();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user