mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-15 04:31:41 +01:00
If PermissionsBukkit or bPermissions is detected, we don't need the config switch.
This commit is contained in:
parent
fa423b3dd2
commit
22c277f9ab
@ -57,8 +57,6 @@ public class EssentialsPluginListener extends ServerListener implements IConf
|
|||||||
{
|
{
|
||||||
final Plugin permissionsPlugin = pm.getPlugin("Permissions");
|
final Plugin permissionsPlugin = pm.getPlugin("Permissions");
|
||||||
if (permissionsPlugin == null || !permissionsPlugin.isEnabled())
|
if (permissionsPlugin == null || !permissionsPlugin.isEnabled())
|
||||||
{
|
|
||||||
if (ess.getSettings().useBukkitPermissions())
|
|
||||||
{
|
{
|
||||||
final Plugin permissionsBukkitPlugin = pm.getPlugin("PermissionsBukkit");
|
final Plugin permissionsBukkitPlugin = pm.getPlugin("PermissionsBukkit");
|
||||||
final Plugin bPermissionsPlugin = pm.getPlugin("bPermissions");
|
final Plugin bPermissionsPlugin = pm.getPlugin("bPermissions");
|
||||||
@ -78,7 +76,7 @@ public class EssentialsPluginListener extends ServerListener implements IConf
|
|||||||
ess.setPermissionsHandler(new BPermissionsHandler());
|
ess.setPermissionsHandler(new BPermissionsHandler());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (ess.getSettings().useBukkitPermissions())
|
||||||
{
|
{
|
||||||
if (!(ess.getPermissionsHandler() instanceof SuperpermsHandler))
|
if (!(ess.getPermissionsHandler() instanceof SuperpermsHandler))
|
||||||
{
|
{
|
||||||
@ -86,7 +84,6 @@ public class EssentialsPluginListener extends ServerListener implements IConf
|
|||||||
ess.setPermissionsHandler(new SuperpermsHandler());
|
ess.setPermissionsHandler(new SuperpermsHandler());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!(ess.getPermissionsHandler() instanceof ConfigPermissionsHandler))
|
if (!(ess.getPermissionsHandler() instanceof ConfigPermissionsHandler))
|
||||||
|
Loading…
Reference in New Issue
Block a user