Colorize the messages for when a /game start fails
This commit is contained in:
parent
452e8a9694
commit
e8725b38ab
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user