mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-08-26 18:34:33 +00:00
Added backwards compatibility for per-world permissions. (Not sure why it hasn't popped up before now)
This commit is contained in:
parent
cf3238d50e
commit
b4f646a11a
@ -68,8 +68,12 @@ public class NijiPermissionsResolver implements PermissionsResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasPermission(String worldName, String name, String permission) {
|
public boolean hasPermission(String worldName, String name, String permission) {
|
||||||
|
try {
|
||||||
try {
|
try {
|
||||||
return api.getHandler().has(worldName, name, permission);
|
return api.getHandler().has(worldName, name, permission);
|
||||||
|
} catch (Throwable t) {
|
||||||
|
return api.getHandler().has(server.getPlayer(name), permission);
|
||||||
|
}
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user