Skip to content

Commit

Permalink
remove sit command player requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 6, 2021
1 parent 44f245a commit d0d0867
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,6 @@ else if (args.hasFlag('r')) {
min = 1, max = 3, permission = "denizen.npc.sit")
@Requirements(selected = true, ownership = true)
public void sitting(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
if (npc.getEntity().getType() != EntityType.PLAYER) {
Messaging.sendError(sender, npc.getName() + " needs to be a Player type NPC to sit!");
return;
}
SittingTrait trait = npc.getOrAddTrait(SittingTrait.class);
if (args.hasValueFlag("location")) {
LocationTag location = LocationTag.valueOf(args.getFlag("location"), CoreUtilities.basicContext);
Expand Down

0 comments on commit d0d0867

Please sign in to comment.