Fix Vault-based permission logging (forgot after refactor)

This commit is contained in:
vemacs 2016-07-09 18:42:42 -06:00
parent 890c32949d
commit 0a1feaf044

View File

@ -125,8 +125,8 @@ public class PermissionsHandler implements IPermissionsHandler {
lastHandler = handlerClass; lastHandler = handlerClass;
// output handler info // output handler info
if (handler instanceof GenericVaultHandler) { if (handler instanceof AbstractVaultHandler) {
String enabledPermsPlugin = ((GenericVaultHandler) handler).getEnabledPermsPlugin(); String enabledPermsPlugin = ((AbstractVaultHandler) handler).getEnabledPermsPlugin();
if (enabledPermsPlugin == null) enabledPermsPlugin = "generic"; if (enabledPermsPlugin == null) enabledPermsPlugin = "generic";
ess.getLogger().info("Using Vault based permissions (" + enabledPermsPlugin + ")"); ess.getLogger().info("Using Vault based permissions (" + enabledPermsPlugin + ")");
} else if (handler.getClass() == SuperpermsHandler.class) { } else if (handler.getClass() == SuperpermsHandler.class) {