mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-05-29 08:21:26 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rank.isConsole())
|
||||||
|
{
|
||||||
|
msg("You cannot set players to a console rank");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!rank.isAtLeast(Rank.SUPER_ADMIN))
|
if (!rank.isAtLeast(Rank.SUPER_ADMIN))
|
||||||
{
|
{
|
||||||
msg("Rank must be superadmin or higher.", ChatColor.RED);
|
msg("Rank must be superadmin or higher.", ChatColor.RED);
|
||||||
|
|
Loading…
Reference in a new issue