Fix impossibility to get or remove metadata (#2002)

This commit is contained in:
DelfikPro 2019-12-22 12:51:23 +03:00 committed by fullwall
parent 5972e3dffc
commit 3e48abeebb

View File

@ -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();
}