private void NPCTypeCommand(string[] args)
{
if (args.Length < 2)
{
Main.NewText("Usage: /npcType modName npcName");
return;
}
Mod mod = ModLoader.GetMod(args[0]);
int type = mod == null ? 0 : mod.NPCType(args[1]);
Main.NewText(type.ToString(), 255, 255, 0);
}