mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 19:16:34 +01:00
Merge pull request #25 from oloflarsson/betterperms
Superperms compliant plugin.yml. Fixes CITIZENS-705.
This commit is contained in:
commit
a34b78c9e5
@ -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
Loading…
Reference in New Issue
Block a user