From b134bc705b13d01ec6c44a3f1c44c3cbbf47ad68 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Sat, 27 Apr 2019 17:03:30 +0200 Subject: [PATCH] Fix bug where people couldn't edit their own title --- src/com/massivecraft/factions/cmd/CmdFactionsTitle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsTitle.java b/src/com/massivecraft/factions/cmd/CmdFactionsTitle.java index e9a1755b..8d7356e0 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsTitle.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsTitle.java @@ -48,7 +48,7 @@ public class CmdFactionsTitle extends FactionsCommand { throw new MassiveException().addMsg("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("You can't edit titles of people with the same rank as yourself."); }