From 28f86548c81b1790004638889ef7974792f0db23 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 24 Sep 2011 02:21:24 +0100 Subject: [PATCH] Moderators can now affect themselves. --- src/com/massivecraft/factions/commands/FBaseCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/commands/FBaseCommand.java b/src/com/massivecraft/factions/commands/FBaseCommand.java index 5f338f89..380c71d6 100644 --- a/src/com/massivecraft/factions/commands/FBaseCommand.java +++ b/src/com/massivecraft/factions/commands/FBaseCommand.java @@ -227,7 +227,11 @@ public class FBaseCommand { if (you.getRole().equals(Role.ADMIN)) { i.sendMessage(Conf.colorSystem+"Only the faction admin can do that."); } else if (i.getRole().equals(Role.MODERATOR)) { - i.sendMessage(Conf.colorSystem+"Moderators can't control each other..."); + if ( i == you ) { + return true; //Moderators can control themselves + } else { + i.sendMessage(Conf.colorSystem+"Moderators can't control each other..."); + } } else { i.sendMessage(Conf.colorSystem+"You must be a faction moderator to do that."); }