Disable completly PermissionsBukkit
This commit is contained in:
parent
0b0847ea2c
commit
5a3e6c3f32
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user