Skip to content

Commit

Permalink
Allow overriding all sub-commands in RoundsGameCmd per request (Thank…
Browse files Browse the repository at this point in the history
…s Venk)
  • Loading branch information
UnknownShadow200 committed Feb 16, 2023
1 parent c57eda9 commit 3a5a544
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MCGalaxy/Commands/Fun/RoundsGameCmd.cs
Expand Up @@ -51,7 +51,7 @@ public abstract class RoundsGameCmd : Command2 {
}
}

protected void HandleGo(Player p, RoundsGame game) {
protected virtual void HandleGo(Player p, RoundsGame game) {
if (!game.Running) {
p.Message("{0} is not running", game.GameName);
} else {
Expand All @@ -66,15 +66,15 @@ public abstract class RoundsGameCmd : Command2 {
game.Start(p, map, int.MaxValue);
}

protected void HandleEnd(Player p, RoundsGame game) {
protected virtual void HandleEnd(Player p, RoundsGame game) {
if (game.RoundInProgress) {
game.EndRound();
} else {
p.Message("No round is currently in progress");
}
}

protected void HandleStop(Player p, RoundsGame game) {
protected virtual void HandleStop(Player p, RoundsGame game) {
if (!game.Running) {
p.Message("{0} is not running", game.GameName);
} else {
Expand All @@ -83,7 +83,7 @@ public abstract class RoundsGameCmd : Command2 {
}
}

protected void HandleStatus(Player p, RoundsGame game) {
protected virtual void HandleStatus(Player p, RoundsGame game) {
if (!game.Running) {
p.Message("{0} is not running", game.GameName);
} else {
Expand Down

0 comments on commit 3a5a544

Please sign in to comment.