mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-16 20:31:30 +01:00
added /npc
This commit is contained in:
parent
8b21ec5b3f
commit
6e6c9eb167
@ -33,6 +33,17 @@ public class NPCCommands {
|
||||
characterManager = plugin.getCharacterManager();
|
||||
}
|
||||
|
||||
@Command(
|
||||
aliases = { "npc" },
|
||||
desc = "Show basic NPC information",
|
||||
max = 0,
|
||||
permission = "npc.info")
|
||||
public void showInfo(CommandContext args, Player player, NPC npc) {
|
||||
Messaging.send(player, StringHelper.wrapHeader(npc.getName()));
|
||||
Messaging.send(player, " <a>ID: <e>" + npc.getId());
|
||||
Messaging.send(player, " <a>Character: <e>" + npc.getId());
|
||||
}
|
||||
|
||||
@Command(
|
||||
aliases = { "npc" },
|
||||
usage = "create [name] --type (type) --char (character) --temp (template)",
|
||||
|
Loading…
Reference in New Issue
Block a user