mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-28 02:51:44 +01:00
Update EditorCommands.java
This commit is contained in:
parent
961a24f12c
commit
190d8e823d
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user