mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-08 03:50:06 +01:00
Fix compile, class definitions
This commit is contained in:
parent
549da08f87
commit
9ccfd4aac0
@ -1310,4 +1310,9 @@ public class OfflinePlayer implements Player {
|
||||
public Map<String, Object> serialize() {
|
||||
return base.serialize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity getSpectatorTarget() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
}
|
||||
|
@ -102,8 +102,8 @@ public class PermissionsHandler implements IPermissionsHandler {
|
||||
for (Class<? extends IPermissionsHandler> providerClass : providerClazz) {
|
||||
try {
|
||||
IPermissionsHandler provider = providerClass.newInstance();
|
||||
this.handler = provider;
|
||||
if (provider.tryProvider()) {
|
||||
this.handler = provider;
|
||||
break;
|
||||
}
|
||||
} catch (Throwable ignored) {
|
||||
@ -120,17 +120,15 @@ public class PermissionsHandler implements IPermissionsHandler {
|
||||
String enabledPermsPlugin = ((GenericVaultHandler) handler).getEnabledPermsPlugin();
|
||||
if (enabledPermsPlugin == null) enabledPermsPlugin = "generic";
|
||||
ess.getLogger().info("Using Vault based permissions (" + enabledPermsPlugin + ")");
|
||||
} else if (handler instanceof SuperpermsHandler) {
|
||||
} else if (handler.getClass() == SuperpermsHandler.class) {
|
||||
if (handler.tryProvider()) {
|
||||
ess.getLogger().warning("Detected supported permissions plugin " +
|
||||
((SuperpermsHandler) handler).getEnabledPermsPlugin() + " without Vault installed.");
|
||||
ess.getLogger().warning("Features such as chat prefixes/suffixes and group-related functionality will not " +
|
||||
"work until you install Vault.");
|
||||
} else if (Bukkit.getPluginManager().getPlugin("Vault") != null) {
|
||||
ess.getLogger().info("Detected Vault but no supported permissions plugin.");
|
||||
}
|
||||
ess.getLogger().info("Using superperms-based permissions.");
|
||||
} else if (handler instanceof ConfigPermissionsHandler) {
|
||||
} else if (handler.getClass() == ConfigPermissionsHandler.class) {
|
||||
ess.getLogger().info("Using config file enhanced permissions.");
|
||||
ess.getLogger().info("Permissions listed in as player-commands will be given to all users.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user