Merge pull request #311 from krinsdeath/master

I stupidly inverted the parameters of my own API. This pull fixes that.
This commit is contained in:
Rodney Ramos 2012-12-03 20:50:59 -08:00
commit 58db755bda

View File

@ -103,13 +103,13 @@ public class Permission_Privileges extends Permission {
@Override @Override
public boolean groupAdd(String world, String group, String permission) { public boolean groupAdd(String world, String group, String permission) {
Group g = privs.getGroupManager().getGroup(group); Group g = privs.getGroupManager().getGroup(group);
return g != null && g.addPermission(permission, world); return g != null && g.addPermission(world, permission);
} }
@Override @Override
public boolean groupRemove(String world, String group, String permission) { public boolean groupRemove(String world, String group, String permission) {
Group g = privs.getGroupManager().getGroup(group); Group g = privs.getGroupManager().getGroup(group);
return g != null && g.removePermission(permission, world); return g != null && g.removePermission(world, permission);
} }
@Override @Override