diff --git a/src/main/java/com/songoda/skyblock/listeners/Move.java b/src/main/java/com/songoda/skyblock/listeners/Move.java index 05f2d937..6c84bc23 100644 --- a/src/main/java/com/songoda/skyblock/listeners/Move.java +++ b/src/main/java/com/songoda/skyblock/listeners/Move.java @@ -208,8 +208,10 @@ public class Move implements Listener { final Player player = e.getPlayer(); final WorldManager worldManager = skyblock.getWorldManager(); - if (!worldManager.isIslandWorld(e.getTo().getWorld())) return; - if (skyblock.getIslandManager().getIslandAtLocation(e.getTo()) != null) return; + if (e.getTo() == null || + !worldManager.isIslandWorld(e.getTo().getWorld()) || + skyblock.getIslandManager().getIslandAtLocation(e.getTo()) != null) + return; e.setCancelled(true);