feat: add admin award winner command (#13)
Co-authored-by: Joshua Higgins <joshuafhiggins@gmail.com>
This commit was merged in pull request #13.
This commit is contained in:
@@ -208,6 +208,12 @@ public partial class Connection : Node {
|
||||
sendCommand("GAME", "TERMINATE:" + matchID);
|
||||
}
|
||||
|
||||
public void AwardGameWinner(int matchID, string winnerUsername) {
|
||||
if (!IsAdmin) return;
|
||||
if (string.IsNullOrWhiteSpace(winnerUsername)) return;
|
||||
sendCommand("GAME", "AWARD:" + matchID + ":" + winnerUsername.Trim());
|
||||
}
|
||||
|
||||
public void SetMoveWait(float waitTime) {
|
||||
if (!IsAdmin) return;
|
||||
CurrentWaitTimeout = waitTime;
|
||||
@@ -594,4 +600,4 @@ public partial class Connection : Node {
|
||||
|
||||
GetTree().Root.AddChild(scoreboardWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user