Properly restrict moderation staff testrank access

This commit is contained in:
AlexTheCoder 2017-06-08 20:15:41 -04:00
parent ecd9812f0c
commit 986d4f3dcc

View File

@ -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))
{ {