mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-29 20:47:53 +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")
|
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