diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/TeleportCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/TeleportCommand.java index 9002d2f281..00941c7dd6 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/TeleportCommand.java +++ b/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/TeleportCommand.java @@ -68,6 +68,9 @@ public void execute(final ScriptEntry scriptEntry) throws CommandExecutionExcept dB.report(getName(), aH.debugObj("location", location) + aH.debugObj("entities", entities.toString())); + if (location == null) + return; + for (dEntity entity : entities) { // Call a Bukkit event for compatibility with "on entity teleports" // world event and other plugins