From e8725b38abb55a3110f107b1a494cce782a07ee0 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 25 Sep 2015 14:06:35 +1200 Subject: [PATCH] Colorize the messages for when a /game start fails --- .../src/nautilus/game/arcade/command/StartCommand.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/StartCommand.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/StartCommand.java index 7a7a0dd43..1f506aafe 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/StartCommand.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/StartCommand.java @@ -18,12 +18,15 @@ public class StartCommand extends CommandBase @Override 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; - + } + 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; }