Merge pull request #237 from mung3r/master

a few fixes
This commit is contained in:
Rodney Ramos 2012-08-07 13:34:05 -07:00
commit 98651a872e
3 changed files with 4 additions and 4 deletions

View File

@ -220,7 +220,7 @@ public class Chat_Permissions3 extends Chat {
@Override
public String getGroupPrefix(String world, String group) {
return this.getGroupPrefix(world, group);
return this.perms.getGroupPrefix(world, group);
}
@Override
@ -230,7 +230,7 @@ public class Chat_Permissions3 extends Chat {
@Override
public String getGroupSuffix(String world, String group) {
return this.getGroupSuffix(world, group);
return this.perms.getGroupSuffix(world, group);
}
@Override

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