mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-30 03:51:24 +01:00
fixed some ambiguity with local vars
This commit is contained in:
parent
49aef0d7d9
commit
69944e01a3
@ -45,7 +45,7 @@ public class Permission_PermissionsBukkit extends Permission {
|
||||
if (perms == null) {
|
||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("PermissionsBukkit");
|
||||
if (perms != null) {
|
||||
perms = (PermissionsPlugin) perms;
|
||||
this.perms = (PermissionsPlugin) perms;
|
||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
||||
}
|
||||
}
|
||||
|
@ -148,8 +148,8 @@ public class Permission_SimplyPerms extends Permission{
|
||||
public boolean groupRemove(String world, String group, String permission) {
|
||||
permission = permission.toLowerCase();
|
||||
if (world != null) {
|
||||
this.perms.removeGroupPermission(group, world, permission);
|
||||
permission = world + ":" + permission;
|
||||
this.perms.removeGroupPermission(group, world, permission);
|
||||
} else {
|
||||
this.perms.removeGroupPermission(group, permission);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user