Update EditorCommands.java

This commit is contained in:
fullwall 2014-05-09 00:30:55 +08:00
parent 961a24f12c
commit 190d8e823d

View File

@ -11,6 +11,7 @@ import net.citizensnpcs.trait.text.Text;
import net.citizensnpcs.trait.waypoint.Waypoints; import net.citizensnpcs.trait.waypoint.Waypoints;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.command.CommandSender;
@Requirements(selected = true, ownership = true) @Requirements(selected = true, ownership = true)
public class EditorCommands { public class EditorCommands {
@ -48,7 +49,7 @@ public class EditorCommands {
flags = "*", flags = "*",
permission = "citizens.npc.edit.path") permission = "citizens.npc.edit.path")
@Requirements(selected = true, ownership = true) @Requirements(selected = true, ownership = true)
public void path(CommandContext args, Player player, NPC npc) { public void path(CommandContext args, CommandSender player, NPC npc) {
Editor.enterOrLeave(player, npc.getTrait(Waypoints.class).getEditor(player, args)); Editor.enterOrLeave(player, npc.getTrait(Waypoints.class).getEditor(player, args));
} }