Fix CITIZENS-403

This commit is contained in:
fullwall 2013-01-30 22:51:41 +08:00
parent dca3541341
commit cea26b3db0
1 changed files with 12 additions and 0 deletions

View File

@ -487,6 +487,18 @@ public class NPCCommands {
Messaging.sendTr(sender, key, npc.getName());
}
@Command(
aliases = { "npc" },
usage = "id",
desc = "Sends the selected NPC's ID to the sender",
modifiers = { "id" },
min = 1,
max = 1,
permission = "npc.id")
public void id(CommandContext args, CommandSender sender, NPC npc) {
Messaging.send(sender, npc.getId());
}
@Command(
aliases = { "npc" },
usage = "list (page) ((-a) --owner (owner) --type (type) --char (char))",