Skip to content

Commit

Permalink
Merge pull request #13 from ILW8/mp-abort-command
Browse files Browse the repository at this point in the history
add !mp abort
  • Loading branch information
ILW8 authored Apr 6, 2024
2 parents db8f59a + 6401c8b commit ba46a83
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions osu.Game/Online/Chat/StandAloneChatDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,24 @@ private void postMessage(TextBox sender, bool newText)

break;
}

for (;;)
{
if (!(parts.Length == 2 && parts[0] == @"!mp"))
break;

switch (parts[1])
{
case @"abort":
if (!Client.IsHost)
return;

Client.AbortMatch().FireAndForget();
break;
}

break;
}
}

TextBox.Text = string.Empty;
Expand Down

0 comments on commit ba46a83

Please sign in to comment.