From de5edc19ad6147d6730e475152c52f2f3b2ef706 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 10 Jun 2012 16:09:53 +0800 Subject: [PATCH] Update master --- src/main/java/net/citizensnpcs/command/command/NPCCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/command/command/NPCCommands.java b/src/main/java/net/citizensnpcs/command/command/NPCCommands.java index 84469edd5..7eba59512 100644 --- a/src/main/java/net/citizensnpcs/command/command/NPCCommands.java +++ b/src/main/java/net/citizensnpcs/command/command/NPCCommands.java @@ -319,7 +319,7 @@ public class NPCCommands { @Command(aliases = { "npc" }, usage = "moveto", desc = "Teleports a NPC to a given location", modifiers = "moveto", min = 1, max = 1, permission = "npc.moveto") - public void moveto(CommandContext args, CommandSender sender, NPC npc) { + public void moveto(CommandContext args, CommandSender sender, NPC npc) throws CommandException { // Spawn the NPC if it isn't spawned to prevent NPEs if (!npc.isSpawned()) npc.spawn(npc.getTrait(CurrentLocation.class).getLocation());