This commit is contained in:
Jesse Boyd 2018-01-30 13:12:35 +11:00
parent 21e976ce4d
commit 371b4f5ee5
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

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