Make sure faction is normal when checking relation on commands.
This commit is contained in:
parent
f5432cd227
commit
bc2d7c35f6
@ -505,17 +505,17 @@ public class FactionsPlayerListener implements Listener {
|
||||
}
|
||||
|
||||
Relation rel = at.getRelationTo(me);
|
||||
if (rel.isAlly() && !Conf.territoryAllyDenyCommands.isEmpty() && !me.isAdminBypassing() && isCommandInList(fullCmd, shortCmd, Conf.territoryAllyDenyCommands.iterator())) {
|
||||
if (at.isNormal() && rel.isAlly() && !Conf.territoryAllyDenyCommands.isEmpty() && !me.isAdminBypassing() && isCommandInList(fullCmd, shortCmd, Conf.territoryAllyDenyCommands.iterator())) {
|
||||
me.msg(TL.PLAYER_COMMAND_ALLY, fullCmd);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (rel.isNeutral() && !Conf.territoryNeutralDenyCommands.isEmpty() && !me.isAdminBypassing() && isCommandInList(fullCmd, shortCmd, Conf.territoryNeutralDenyCommands.iterator())) {
|
||||
if (at.isNormal() && rel.isNeutral() && !Conf.territoryNeutralDenyCommands.isEmpty() && !me.isAdminBypassing() && isCommandInList(fullCmd, shortCmd, Conf.territoryNeutralDenyCommands.iterator())) {
|
||||
me.msg(TL.PLAYER_COMMAND_NEUTRAL, fullCmd);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (rel.isEnemy() && !Conf.territoryEnemyDenyCommands.isEmpty() && !me.isAdminBypassing() && isCommandInList(fullCmd, shortCmd, Conf.territoryEnemyDenyCommands.iterator())) {
|
||||
if (at.isNormal() && rel.isEnemy() && !Conf.territoryEnemyDenyCommands.isEmpty() && !me.isAdminBypassing() && isCommandInList(fullCmd, shortCmd, Conf.territoryEnemyDenyCommands.iterator())) {
|
||||
me.msg(TL.PLAYER_COMMAND_ENEMY, fullCmd);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user