Mineplex2018-withcommit/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/StartCommand.java

34 lines
774 B
Java
Raw Normal View History

2013-08-27 17:14:08 +02:00
package nautilus.game.arcade.command;
import org.bukkit.entity.Player;
import nautilus.game.arcade.ArcadeManager;
import mineplex.core.command.CommandBase;
import mineplex.core.common.Rank;
import mineplex.core.common.util.C;
2013-08-27 17:14:08 +02:00
public class StartCommand extends CommandBase<ArcadeManager>
{
public StartCommand(ArcadeManager plugin)
{
super(plugin, Rank.ADMIN, "start");
}
@Override
public void Execute(Player caller, String[] args)
{
if (Plugin.GetGame() == null)
return;
if (Plugin.GetGame().InProgress())
{
caller.sendMessage("Game is already in progress...");
return;
}
2013-08-27 17:14:08 +02:00
Plugin.GetGameManager().StateCountdown(Plugin.GetGame(), 10, true);
Plugin.GetGame().Announce(C.cAqua + C.Bold + caller.getName() + " has started the game.");
2013-08-27 17:14:08 +02:00
}
}