mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-05 18:30:26 +01:00
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:
parent
cac5a5387d
commit
ccce8a249a
@ -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