Add rank check to /f ban (#1068)

* Add rank check to /f ban

* Fix incorrect f perm check at SetHome
This commit is contained in:
Dariasc
2018-03-04 00:12:14 -03:00
committed by Trent Hensler
parent fa007e5674
commit a8ce60b457
3 changed files with 16 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ public class CmdSethome extends FCommand {
// Can the player set the home for this faction?
// Check for ALLOW access as well before we check for role.
if (faction == myFaction && access != Access.ALLOW) {
if (!Permission.SETHOME_ANY.has(sender) && !(assertMinRole(Role.MODERATOR))) {
if (!Permission.SETHOME_ANY.has(sender) || !assertMinRole(Role.MODERATOR)) {
return;
}
} else {