mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-10-02 09:08:02 +02: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")
|
flags = "myn")
|
||||||
public void controllable(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
|
public void controllable(CommandContext args, CommandSender sender, NPC npc) throws CommandException {
|
||||||
if ((npc.isSpawned() && !sender.hasPermission("citizens.npc.controllable."
|
if ((npc.isSpawned() && !sender.hasPermission("citizens.npc.controllable."
|
||||||
+ npc.getBukkitEntity().getType().toString().toLowerCase()))
|
+ npc.getBukkitEntity().getType().name().toLowerCase().replace("_", "")))
|
||||||
|| !sender.hasPermission("citizens.npc.controllable"))
|
|| !sender.hasPermission("citizens.npc.controllable"))
|
||||||
throw new NoPermissionsException();
|
throw new NoPermissionsException();
|
||||||
if (!npc.hasTrait(Controllable.class)) {
|
if (!npc.hasTrait(Controllable.class)) {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user