Don't let them set default to admin
This commit is contained in:
parent
f6bd156f89
commit
f019c4f833
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user