Colorize the messages for when a /game start fails

This commit is contained in:
libraryaddict 2015-09-25 14:06:35 +12:00
parent 452e8a9694
commit e8725b38ab
1 changed files with 6 additions and 3 deletions

View File

@ -18,12 +18,15 @@ public class StartCommand extends CommandBase<ArcadeManager>
@Override @Override
public void Execute(Player caller, String[] args) public void Execute(Player caller, String[] args)
{ {
if (Plugin.GetGame() == null) if (Plugin.GetGame() == null || Plugin.GetGame().GetState() == GameState.Loading)
{
caller.sendMessage(C.cRed + C.Bold + "Game is loading...");
return; return;
}
if (Plugin.GetGame().GetState() != GameState.Recruit) if (Plugin.GetGame().GetState() != GameState.Recruit)
{ {
caller.sendMessage("Game is already in progress..."); caller.sendMessage(C.cRed + C.Bold + "Game is already in progress...");
return; return;
} }