From 3e48abeebbdafc390c8bf138137a4cbe5c0f4656 Mon Sep 17 00:00:00 2001 From: DelfikPro <33707322+DelfikPro@users.noreply.github.com> Date: Sun, 22 Dec 2019 12:51:23 +0300 Subject: [PATCH] Fix impossibility to get or remove metadata (#2002) --- main/src/main/java/net/citizensnpcs/commands/NPCCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index 66277c647..e78b7e26d 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -928,12 +928,12 @@ public class NPCCommands { npc.data().setPersistent(args.getString(2), args.getString(3)); } Messaging.sendTr(sender, Messages.METADATA_SET, args.getString(2), args.getString(3)); - } else if (args.equals("get")) { + } else if (command.equals("get")) { if (args.argsLength() != 3) { throw new CommandException(); } Messaging.send(sender, npc.data().get(args.getString(2), "null")); - } else if (args.equals("remove")) { + } else if (command.equals("remove")) { if (args.argsLength() != 3) { throw new CommandException(); }