Renamed method for clarity
This commit is contained in:
parent
d9c9197dbb
commit
a570400b66
@ -146,7 +146,7 @@ public class Guthix implements MessageCreateListener {
|
|||||||
cmdArgs
|
cmdArgs
|
||||||
).build();
|
).build();
|
||||||
|
|
||||||
if (manager.hasPermission(cmd.permission(), ctx)) {
|
if (manager.userHasPermission(cmd.permission(), ctx)) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
@ -17,7 +17,7 @@ public class PermissionManager {
|
|||||||
public PermissionManager() {
|
public PermissionManager() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasPermission(CommandPermission reqPerm, CommandContext ctx) {
|
public boolean userHasPermission(CommandPermission reqPerm, CommandContext ctx) {
|
||||||
PermissionType permType = reqPerm.getType();
|
PermissionType permType = reqPerm.getType();
|
||||||
String permValue = reqPerm.getValue();
|
String permValue = reqPerm.getValue();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user