From f019c4f8338c1aa2fd8fb7ed61f85e642dff0606 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Thu, 4 Jan 2018 17:38:29 -0800 Subject: [PATCH] Don't let them set default to admin --- .../com/massivecraft/factions/cmd/CmdSetDefaultRole.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdSetDefaultRole.java b/src/main/java/com/massivecraft/factions/cmd/CmdSetDefaultRole.java index 8dfa36a7..3f319d1f 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdSetDefaultRole.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdSetDefaultRole.java @@ -30,6 +30,11 @@ public class CmdSetDefaultRole extends FCommand { return; } + if (target == Role.ADMIN) { + msg(TL.COMMAND_SETDEFAULTROLE_NOTTHATROLE, argAsString(0)); + return; + } + myFaction.setDefaultRole(target); msg(TL.COMMAND_SETDEFAULTROLE_SUCCESS, target.nicename); }