157158159160161162163
npc.removeType(type); player.sendMessage(StringUtils.wrap(npc.getName()) + " has stopped being a " + type + "."); } Bukkit.getServer().getPluginManager() .callEvent(new NPCToggleTypeEvent(npc, type, npc.isType(type))); }