Show map Zombie survival is running on in /zg status.

This commit is contained in:
UnknownShadow200 2016-07-29 08:59:22 +10:00
parent 2a4061b61c
commit d7b53bebea

View File

@ -19,10 +19,8 @@
using System;
using MCGalaxy.Games;
namespace MCGalaxy.Commands
{
public sealed class CmdZombieGame : Command
{
namespace MCGalaxy.Commands {
public sealed class CmdZombieGame : Command {
public override string name { get { return "zombiegame"; } }
public override string shortcut { get { return "zg"; } }
public override string type { get { return CommandTypes.Games; } }
@ -49,16 +47,19 @@ namespace MCGalaxy.Commands
static void HandleStatus(Player p, string message, string[] args) {
switch (Server.zombie.Status) {
case ZombieGameStatus.NotStarted:
Player.Message(p, "Zombie Survival is not ccurrently running."); return;
Player.Message(p, "Zombie Survival is not currently running."); break;
case ZombieGameStatus.InfiniteRounds:
Player.Message(p, "Zombie Survival is currently in progress with infinite rounds."); return;
Player.Message(p, "Zombie Survival is currently in progress with infinite rounds."); break;
case ZombieGameStatus.SingleRound:
Player.Message(p, "Zombie Survival game currently in progress."); return;
Player.Message(p, "Zombie Survival game currently in progress."); break;
case ZombieGameStatus.VariableRounds:
Player.Message(p, "Zombie Survival game currently in progress with " + Server.zombie.MaxRounds + " rounds."); return;
Player.Message(p, "Zombie Survival game currently in progress with " + Server.zombie.MaxRounds + " rounds."); break;
case ZombieGameStatus.LastRound:
Player.Message(p, "Zombie Survival game currently in progress, with this round being the final round."); return;
Player.Message(p, "Zombie Survival game currently in progress, with this round being the final round."); break;
}
if (Server.zombie.Status == ZombieGameStatus.NotStarted || Server.zombie.CurLevelName == "") return;
Player.Message(p, "Running on map: " + Server.zombie.CurLevelName);
}
static void HandleStart(Player p, string message, string[] args) {