From 02e797a7a05aedaa622f3514e6f6eb531f9096ed Mon Sep 17 00:00:00 2001 From: Sleaker Date: Sat, 24 Sep 2011 17:53:09 -0700 Subject: [PATCH] give an actual notice that SuperPerms is loaded as a backup permission system. --- src/net/milkbowl/vault/Vault.java | 7 ++++--- .../vault/permission/plugins/Permission_SuperPerms.java | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/net/milkbowl/vault/Vault.java b/src/net/milkbowl/vault/Vault.java index aacaad5..442169e 100644 --- a/src/net/milkbowl/vault/Vault.java +++ b/src/net/milkbowl/vault/Vault.java @@ -144,7 +144,7 @@ public class Vault extends JavaPlugin { // Try to load PermissionsEx if (packageExists(new String[] { "ru.tehkode.permissions.bukkit.PermissionsEx" })) { Permission ePerms = new Permission_PermissionsEx(this); - getServer().getServicesManager().register(net.milkbowl.vault.permission.Permission.class, ePerms, this, ServicePriority.High); + getServer().getServicesManager().register(net.milkbowl.vault.permission.Permission.class, ePerms, this, ServicePriority.Highest); log.info(String.format("[%s][Permission] PermissionsEx found: %s", getDescription().getName(), ePerms.isEnabled() ? "Loaded" : "Waiting")); } else { log.info(String.format("[%s][Permission] PermissionsEx not found.", getDescription().getName())); @@ -153,7 +153,7 @@ public class Vault extends JavaPlugin { //Try loading PermissionsBukkit if (packageExists(new String[] {"com.platymuus.bukkit.permissions.PermissionsPlugin"} )) { Permission pPerms = new Permission_PermissionsBukkit(this); - getServer().getServicesManager().register(net.milkbowl.vault.permission.Permission.class, pPerms, this, ServicePriority.High); + getServer().getServicesManager().register(net.milkbowl.vault.permission.Permission.class, pPerms, this, ServicePriority.Highest); log.info(String.format("[%s][Permission] PermissionsBukkit found: %s", getDescription().getName(), pPerms.isEnabled() ? "Loaded" : "Waiting")); } else { log.info(String.format("[%s][Permission] PermissionsBukkit not found.", getDescription().getName())); @@ -170,7 +170,7 @@ public class Vault extends JavaPlugin { // Try to load Permissions 3 (Yeti) if (packageExists(new String[] { "com.nijiko.permissions.ModularControl" })) { Permission nPerms = new Permission_Permissions3(this); - getServer().getServicesManager().register(net.milkbowl.vault.permission.Permission.class, nPerms, this, ServicePriority.Normal); + getServer().getServicesManager().register(net.milkbowl.vault.permission.Permission.class, nPerms, this, ServicePriority.High); log.info(String.format("[%s][Permission] Permissions 3 (Yeti) found: %s", getDescription().getName(), nPerms.isEnabled() ? "Loaded" : "Waiting")); } else { log.info(String.format("[%s][Permission] Permissions 3 (Yeti) not found.", getDescription().getName())); @@ -187,6 +187,7 @@ public class Vault extends JavaPlugin { Permission perms = new Permission_SuperPerms(this); getServer().getServicesManager().register(net.milkbowl.vault.permission.Permission.class, perms, this, ServicePriority.Lowest); + log.info(String.format("[%s][Permission] SuperPermissions loaded as backup permission system.", getDescription().getName())); } diff --git a/src/net/milkbowl/vault/permission/plugins/Permission_SuperPerms.java b/src/net/milkbowl/vault/permission/plugins/Permission_SuperPerms.java index d90baec..cd4f461 100644 --- a/src/net/milkbowl/vault/permission/plugins/Permission_SuperPerms.java +++ b/src/net/milkbowl/vault/permission/plugins/Permission_SuperPerms.java @@ -62,7 +62,6 @@ public class Permission_SuperPerms extends Permission { @Override public boolean playerRemove(String world, String player, String permission) { - // TODO Auto-generated method stub return false; }