mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-02-06 15:31:47 +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) {
|
if (perms == null) {
|
||||||
Plugin perms = plugin.getServer().getPluginManager().getPlugin("PermissionsBukkit");
|
Plugin perms = plugin.getServer().getPluginManager().getPlugin("PermissionsBukkit");
|
||||||
if (perms != null) {
|
if (perms != null) {
|
||||||
perms = (PermissionsPlugin) perms;
|
this.perms = (PermissionsPlugin) perms;
|
||||||
log.info(String.format("[%s][Permission] %s hooked.", plugin.getDescription().getName(), name));
|
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) {
|
public boolean groupRemove(String world, String group, String permission) {
|
||||||
permission = permission.toLowerCase();
|
permission = permission.toLowerCase();
|
||||||
if (world != null) {
|
if (world != null) {
|
||||||
this.perms.removeGroupPermission(group, world, permission);
|
|
||||||
permission = world + ":" + permission;
|
permission = world + ":" + permission;
|
||||||
|
this.perms.removeGroupPermission(group, world, permission);
|
||||||
} else {
|
} else {
|
||||||
this.perms.removeGroupPermission(group, permission);
|
this.perms.removeGroupPermission(group, permission);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user