Fix sethome perm check
This commit is contained in:
parent
a034030ba5
commit
ea7213cbd7
@ -48,7 +48,7 @@ public class CmdSethome extends FCommand {
|
|||||||
// Can the player set the home for this faction?
|
// Can the player set the home for this faction?
|
||||||
// Check for ALLOW access as well before we check for role.
|
// Check for ALLOW access as well before we check for role.
|
||||||
if (faction == myFaction && access != Access.ALLOW) {
|
if (faction == myFaction && access != Access.ALLOW) {
|
||||||
if (!Permission.SETHOME_ANY.has(sender) && !(Role.MODERATOR.value > fme.getRole().value)) {
|
if (!Permission.SETHOME_ANY.has(sender) && !(assertMinRole(Role.MODERATOR))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user