Skip to content

Commit

Permalink
Fix impossibility to get or remove metadata (#2002)
Browse files Browse the repository at this point in the history
  • Loading branch information
delfikpro authored and fullwall committed Dec 22, 2019
1 parent 5972e3d commit 3e48abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/main/java/net/citizensnpcs/commands/NPCCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -928,12 +928,12 @@ public void metadata(CommandContext args, CommandSender sender, NPC npc) throws
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();
}
Expand Down

0 comments on commit 3e48abe

Please sign in to comment.