mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 13:07:23 +01:00
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:
commit
58db755bda
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user