Superperms compliant plugin.yml. Fixes CITIZENS-705.

In this commit I have registered all permissions used in the source code. I have also manually created all applicable wildcard (.*) nodes. By doing this no external
permission manager plugin is required. Additionally external permission managers that are superperms based will now work without bugs.

This commit is 99% backwards compatible current server configurations. The only change made to the nodes is the removal of underscores in citizens.npc.controllable.*
permissions. This change was made to achieve consistency with citizens.npc.create.* permissions.

Signed Off By: Olof "Cayorion" Larsson
This commit is contained in:
Olof Larsson 2013-10-03 03:02:46 +02:00
parent 5f905687f7
commit 818c620a6e
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