Don't let them set default to admin

This commit is contained in:
Trent Hensler 2018-01-04 17:38:29 -08:00
parent f6bd156f89
commit f019c4f833

View File

@ -30,6 +30,11 @@ public class CmdSetDefaultRole extends FCommand {
return; return;
} }
if (target == Role.ADMIN) {
msg(TL.COMMAND_SETDEFAULTROLE_NOTTHATROLE, argAsString(0));
return;
}
myFaction.setDefaultRole(target); myFaction.setDefaultRole(target);
msg(TL.COMMAND_SETDEFAULTROLE_SUCCESS, target.nicename); msg(TL.COMMAND_SETDEFAULTROLE_SUCCESS, target.nicename);
} }