mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-29 12:37:37 +01:00
Fix impossibility to get or remove metadata (#2002)
This commit is contained in:
parent
5972e3dffc
commit
3e48abeebb
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user