mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-21 23:01:24 +01:00
Allow non-players to have anchors and poses
This commit is contained in:
parent
5a74a02f33
commit
94c16c4efc
@ -139,7 +139,7 @@ public class NPCCommands {
|
|||||||
min = 1,
|
min = 1,
|
||||||
max = 3,
|
max = 3,
|
||||||
permission = "citizens.npc.anchor")
|
permission = "citizens.npc.anchor")
|
||||||
@Requirements(selected = true, ownership = true, types = EntityType.PLAYER)
|
@Requirements(selected = true, ownership = true)
|
||||||
public void anchor(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
|
public void anchor(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
|
||||||
Anchors trait = npc.getTrait(Anchors.class);
|
Anchors trait = npc.getTrait(Anchors.class);
|
||||||
if (args.hasValueFlag("save")) {
|
if (args.hasValueFlag("save")) {
|
||||||
@ -746,7 +746,7 @@ public class NPCCommands {
|
|||||||
min = 1,
|
min = 1,
|
||||||
max = 2,
|
max = 2,
|
||||||
permission = "citizens.npc.pose")
|
permission = "citizens.npc.pose")
|
||||||
@Requirements(selected = true, ownership = true, types = EntityType.PLAYER)
|
@Requirements(selected = true, ownership = true)
|
||||||
public void pose(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
|
public void pose(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
|
||||||
Poses trait = npc.getTrait(Poses.class);
|
Poses trait = npc.getTrait(Poses.class);
|
||||||
if (args.hasValueFlag("save")) {
|
if (args.hasValueFlag("save")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user