Deny joining Premium servers through server command without premium

This commit is contained in:
Shaun Bennett 2014-07-31 13:47:51 -05:00
parent b93d6b9cb1
commit c2b1f2a52f

View File

@ -2,7 +2,7 @@ package mineplex.core.portal.Commands;
import org.bukkit.entity.Player;
import mineplex.core.command.*;
import mineplex.core.command.CommandBase;
import mineplex.core.common.Rank;
import mineplex.core.common.util.C;
import mineplex.core.common.util.Callback;
@ -84,6 +84,13 @@ public class ServerCommand extends CommandBase<Portal>
else
deniedAccess = true;
}
else if (!servUp.contains("FREE"))
{
if (playerRank.Has(Rank.ULTRA))
Plugin.SendPlayerToServerWithMessage(player, args[0]);
else
deniedAccess = true;
}
else
{
Plugin.SendPlayerToServerWithMessage(player, args[0]);