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 org.bukkit.entity.Player;
import org.bukkit.command.CommandSender;
@Requirements(selected = true, ownership = true)
public class EditorCommands {
@ -48,7 +49,7 @@ public class EditorCommands {
flags = "*",
permission = "citizens.npc.edit.path")
@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));
}
@ -63,4 +64,4 @@ public class EditorCommands {
public void text(CommandContext args, Player player, NPC npc) {
Editor.enterOrLeave(player, npc.getTrait(Text.class).getEditor(player));
}
}
}