Actually we need an adminmode check as well.

This commit is contained in:
Olof Larsson 2015-08-26 08:34:30 +02:00
parent 6853923264
commit 89b93801d0

View File

@ -52,7 +52,7 @@ public class CmdFactionsTitle extends FactionsCommand
if ( ! MPerm.getPermTitle().has(msender, you.getFaction(), true)) return; if ( ! MPerm.getPermTitle().has(msender, you.getFaction(), true)) return;
// Rank Check // Rank Check
if (you.getRole().isMoreThan(msender.getRole())) if (!msender.isUsingAdminMode() && you.getRole().isMoreThan(msender.getRole()))
{ {
msg("<b>You can not edit titles for higher ranks."); msg("<b>You can not edit titles for higher ranks.");
return; return;