added /npc

This commit is contained in:
aPunch 2012-02-17 18:37:33 -06:00
parent 8b21ec5b3f
commit 6e6c9eb167
1 changed files with 11 additions and 0 deletions

View File

@ -32,6 +32,17 @@ public class NPCCommands {
npcManager = plugin.getNPCManager();
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" },