mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-07 04:53:11 +00:00
Add bPerm2 support for chat prefixes.
This commit is contained in:
parent
4f4d9f6209
commit
514f07ce57
4 changed files with 69 additions and 4 deletions
|
@ -158,12 +158,13 @@ public class PermissionsHandler implements IPermissionsHandler
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (!(handler instanceof SuperpermsHandler))
|
||||
if (!(handler instanceof BPermissions2Handler))
|
||||
{
|
||||
LOGGER.log(Level.INFO, "Essentials: bPermissions api broken, switching to superperms based permissions.");
|
||||
handler = new SuperpermsHandler();
|
||||
LOGGER.log(Level.INFO, "Essentials: Using bPermissions2 based permissions.");
|
||||
handler = new BPermissions2Handler();
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
final Plugin permPlugin = pluginManager.getPlugin("Permissions");
|
||||
if (permPlugin != null && permPlugin.isEnabled())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue