From 5a3e6c3f32f7923473153aae9d09f9d5149688a9 Mon Sep 17 00:00:00 2001 From: Xefir Date: Tue, 8 May 2012 14:36:48 +0200 Subject: [PATCH] Disable completly PermissionsBukkit --- src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java b/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java index b8b0555..b628302 100755 --- a/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java +++ b/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java @@ -32,11 +32,12 @@ public class SimplyPlugin extends JavaPlugin { // -- Basic stuff @Override public void onEnable() { - // Unregister existing PermissionsBukkit nodes + // Disable PermissionsBukkit to avoid bugs if (getServer().getPluginManager().isPluginEnabled("PermissionsBukkit")) { for (Permission perm : getServer().getPluginManager().getPlugin("PermissionsBukkit").getDescription().getPermissions()) { getServer().getPluginManager().removePermission(perm); } + getServer().getPluginManager().disablePlugin(getServer().getPluginManager().getPlugin("PermissionsBukkit")); } // Take care of configuration