fixed some ambiguity with local vars

This commit is contained in:
mung3r 2012-08-07 12:14:56 -07:00
parent 49aef0d7d9
commit 69944e01a3
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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);
}