0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 03:05:16 +00:00
This commit is contained in:
raym55 2022-08-10 21:58:06 +01:00 committed by Sanae
parent 31361d54ca
commit c86be55717

View file

@ -257,7 +257,7 @@ CommandHandler.RegisterCommand("rejoin", args => {
var res = MultiUserCommandHelper(args); var res = MultiUserCommandHelper(args);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.Append(res.toActUpon.Count > 0 ? "Banned: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : ""); sb.Append(res.toActUpon.Count > 0 ? "Rejoined: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : "");
sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : ""); sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : "");
if (res.ambig.Count > 0) { if (res.ambig.Count > 0) {
res.ambig.ForEach(x => { res.ambig.ForEach(x => {
@ -280,7 +280,7 @@ CommandHandler.RegisterCommand("crash", args => {
var res = MultiUserCommandHelper(args); var res = MultiUserCommandHelper(args);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.Append(res.toActUpon.Count > 0 ? "Banned: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : ""); sb.Append(res.toActUpon.Count > 0 ? "Crashed: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : "");
sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : ""); sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : "");
if (res.ambig.Count > 0) { if (res.ambig.Count > 0) {
res.ambig.ForEach(x => { res.ambig.ForEach(x => {