mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-29 15:47:40 +02:00
added /npc
This commit is contained in:
parent
bd8d5e5af5
commit
0c2433b8ca
@ -32,6 +32,17 @@ public class NPCCommands {
|
|||||||
npcManager = plugin.getNPCManager();
|
npcManager = plugin.getNPCManager();
|
||||||
characterManager = plugin.getCharacterManager();
|
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(
|
@Command(
|
||||||
aliases = { "npc" },
|
aliases = { "npc" },
|
||||||
|
Loading…
Reference in New Issue
Block a user