mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
Prevent /saconfig setrank from setting to a console rank. Fixes #1721
This commit is contained in:
parent
f2260d56a4
commit
c885bbb144
@ -74,6 +74,12 @@ public class Command_saconfig extends FreedomCommand
|
||||
return true;
|
||||
}
|
||||
|
||||
if (rank.isConsole())
|
||||
{
|
||||
msg("You cannot set players to a console rank");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!rank.isAtLeast(Rank.SUPER_ADMIN))
|
||||
{
|
||||
msg("Rank must be superadmin or higher.", ChatColor.RED);
|
||||
|
Loading…
Reference in New Issue
Block a user