2013-08-27 17:14:08 +02:00
|
|
|
package nautilus.game.arcade.command;
|
|
|
|
|
2015-07-08 03:20:27 +02:00
|
|
|
import mineplex.core.common.util.F;
|
|
|
|
import mineplex.core.common.util.UtilPlayer;
|
2013-08-27 17:14:08 +02:00
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
import nautilus.game.arcade.ArcadeManager;
|
|
|
|
import mineplex.core.command.MultiCommandBase;
|
|
|
|
import mineplex.core.common.Rank;
|
|
|
|
|
|
|
|
public class GameCommand extends MultiCommandBase<ArcadeManager>
|
|
|
|
{
|
|
|
|
public GameCommand(ArcadeManager plugin)
|
|
|
|
{
|
2015-06-17 05:02:12 +02:00
|
|
|
super(plugin, Rank.ADMIN, new Rank[] {Rank.YOUTUBE, Rank.MAPLEAD, Rank.JNR_DEV}, "game");
|
2013-08-27 17:14:08 +02:00
|
|
|
|
|
|
|
AddCommand(new StartCommand(Plugin));
|
|
|
|
AddCommand(new StopCommand(Plugin));
|
2014-05-02 06:35:41 +02:00
|
|
|
AddCommand(new SetCommand(Plugin));
|
2013-08-27 17:14:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void Help(Player caller, String[] args)
|
|
|
|
{
|
2015-07-08 03:20:27 +02:00
|
|
|
UtilPlayer.message(caller, F.main(Plugin.getName(), "Commands List:"));
|
|
|
|
UtilPlayer.message(caller, F.help("/game start", "Start the current game", Rank.ADMIN));
|
|
|
|
UtilPlayer.message(caller, F.help("/game stop", "Stop the current game", Rank.ADMIN));
|
|
|
|
UtilPlayer.message(caller, F.help("/game set <GameType> (Map)", "Set the current game or next game", Rank.ADMIN));
|
|
|
|
UtilPlayer.message(caller, F.main("Tip", "Use TAB for games/maps!"));
|
2013-08-27 17:14:08 +02:00
|
|
|
}
|
|
|
|
}
|