From ec8a16c30bf58c664595aa5114de597eaff141c0 Mon Sep 17 00:00:00 2001 From: mcmonkey4eva Date: Fri, 23 Mar 2018 04:34:51 -0700 Subject: [PATCH] ( Patch for #1453 ) proper wolf command output "i" flag is left in as a way to get info output but not actually checked (as info output should also appear if changes are made) --- .../java/net/citizensnpcs/commands/NPCCommands.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index 9989025e2..24571c8c9 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -1971,7 +1971,7 @@ public class NPCCommands { min = 1, max = 1, requiresFlags = true, - flags = "sat", + flags = "sati", permission = "citizens.npc.wolf") @Requirements(selected = true, ownership = true, types = EntityType.WOLF) public void wolf(CommandContext args, CommandSender sender, NPC npc) throws CommandException { @@ -2002,9 +2002,7 @@ public class NPCCommands { throw new CommandException(Messages.COLLAR_COLOUR_NOT_SUPPORTED, unparsed); trait.setCollarColor(color); } - if (args.hasFlag('i')) { - Messaging.sendTr(sender, Messages.WOLF_TRAIT_UPDATED, npc.getName(), args.hasFlag('a'), args.hasFlag('s'), - args.hasFlag('t'), trait.getCollarColor().name()); - } + Messaging.sendTr(sender, Messages.WOLF_TRAIT_UPDATED, npc.getName(), trait.isAngry(), trait.isSitting(), + trait.isTamed(), trait.getCollarColor().name()); } -} \ No newline at end of file +}