mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-29 12:37:37 +01:00
Fix CITIZENS-403
This commit is contained in:
parent
c3344f243a
commit
30a0316bd8
@ -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))",
|
||||
|
Loading…
Reference in New Issue
Block a user