mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Cleanup formatting.
This commit is contained in:
parent
4f80e78a7e
commit
2d7c462477
@ -44,6 +44,7 @@ public class ConfigurationPermissionsResolver implements PermissionsResolver {
|
||||
config.setProperty("permissions.groups.admins.permissions", new String[]{"*"});
|
||||
config.setProperty("permissions.users.sk89q.permissions", new String[]{"worldedit.*"});
|
||||
config.setProperty("permissions.users.sk89q.groups", new String[]{"admins"});
|
||||
|
||||
}
|
||||
|
||||
public void load() {
|
||||
|
@ -98,5 +98,4 @@ public class DinnerPermsResolver implements PermissionsResolver {
|
||||
return "Using the Bukkit Permissions API.";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "static-access" })
|
||||
@SuppressWarnings("static-access")
|
||||
public boolean inGroup(String name, String group) {
|
||||
try {
|
||||
Player player = server.getPlayer(name);
|
||||
@ -104,7 +104,7 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "static-access" })
|
||||
@SuppressWarnings("static-access")
|
||||
public String[] getGroups(String name) {
|
||||
try {
|
||||
Player player = server.getPlayer(name);
|
||||
@ -114,8 +114,7 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
||||
groups = api.getHandler().getGroups(player.getWorld().getName(), player.getName());
|
||||
} catch (Throwable t) {
|
||||
String group = api.Security.getGroup(player.getWorld().getName(), player.getName());
|
||||
if (group != null)
|
||||
groups = new String[] {group};
|
||||
if (group != null) groups = new String[] { group };
|
||||
}
|
||||
if (groups == null) {
|
||||
return new String[0];
|
||||
|
@ -156,7 +156,6 @@ public class PermissionsResolverManager implements PermissionsResolver {
|
||||
config.setProperty("ignore-nijiperms-bridges", true);
|
||||
isUpdated = true;
|
||||
}
|
||||
|
||||
if (keys.contains("dinner-perms")) {
|
||||
config.removeProperty("dinner-perms");
|
||||
isUpdated = true;
|
||||
|
@ -82,5 +82,4 @@ public class PermissionsResolverServerListener extends ServerListener {
|
||||
manager.setServerListener(this);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user