Merge pull request #25 from oloflarsson/betterperms

Superperms compliant plugin.yml. Fixes CITIZENS-705.
This commit is contained in:
fullwall 2013-10-03 02:42:21 -07:00
commit a3ced8744d
2 changed files with 1297 additions and 74 deletions

View File

@ -212,7 +212,7 @@ public class NPCCommands {
flags = "myn")
public void controllable(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
if ((npc.isSpawned() && !sender.hasPermission("citizens.npc.controllable."
+ npc.getBukkitEntity().getType().toString().toLowerCase()))
+ npc.getBukkitEntity().getType().name().toLowerCase().replace("_", "")))
|| !sender.hasPermission("citizens.npc.controllable"))
throw new NoPermissionsException();
if (!npc.hasTrait(Controllable.class)) {

File diff suppressed because it is too large Load Diff