Fix bug where people couldn't edit their own title

This commit is contained in:
Magnus Ulf 2019-04-27 17:03:30 +02:00
parent 4c8094f3e0
commit b134bc705b

View File

@ -48,7 +48,7 @@ public class CmdFactionsTitle extends FactionsCommand
{ {
throw new MassiveException().addMsg("<b>You can not edit titles for higher ranks."); throw new MassiveException().addMsg("<b>You can not edit titles for higher ranks.");
} }
if (!msender.isOverriding() && you.getRank() == msender.getRank()) if (!msender.isOverriding() && you.getRank() == msender.getRank() && msender != you)
{ {
throw new MassiveException().addMsg("<b>You can't edit titles of people with the same rank as yourself."); throw new MassiveException().addMsg("<b>You can't edit titles of people with the same rank as yourself.");
} }