Properly restrict moderation staff testrank access
This commit is contained in:
parent
ecd9812f0c
commit
986d4f3dcc
@ -64,7 +64,7 @@ public class TestRank extends CommandBase<CoreClientManager>
|
|||||||
UtilPlayer.message(caller, F.main(Plugin.getName(), ChatColor.RED + "" + ChatColor.BOLD + "Invalid rank!"));
|
UtilPlayer.message(caller, F.main(Plugin.getName(), ChatColor.RED + "" + ChatColor.BOLD + "Invalid rank!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Plugin.Get(caller).GetRank(true) == Rank.SNR_MODERATOR)
|
if (!Plugin.Get(caller).GetRank(true).has(Rank.JNR_DEV))
|
||||||
{
|
{
|
||||||
if (tempRank.has(Rank.TWITCH))
|
if (tempRank.has(Rank.TWITCH))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user