Fix /opstats not actually recording mod commands. (Thanks AndyFC)

This commit is contained in:
UnknownShadow200 2018-01-24 10:27:05 +11:00
parent 0659daba12
commit 2a80d04961
2 changed files with 2 additions and 3 deletions

View File

@ -716,7 +716,7 @@ namespace MCGalaxy {
}
try { //opstats patch (since 5.5.11)
if (Server.Opstats.Contains(cmd) || (cmd.CaselessEq("review") && message.CaselessEq("next") && Server.reviewlist.Count > 0)) {
if (Server.Opstats.CaselessContains(cmd) || (cmd.CaselessEq("review") && message.CaselessEq("next") && Server.reviewlist.Count > 0)) {
Database.Backend.AddRow("Opstats", "Time, Name, Cmd, Cmdmsg",
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), name, cmd, message);
}

View File

@ -65,8 +65,7 @@ namespace MCGalaxy {
public static readonly List<string> Devs = new List<string>(), Mods = new List<string>();
public static readonly List<string> Opstats = new List<string>(
new string[] { "ban", "tempban", "xban", "banip", "kickban", "kick",
"warn", "mute", "freeze", "demote", "promote", "setrank" }
new string[] { "ban", "tempban", "xban", "banip", "kick", "warn", "mute", "freeze", "setrank" }
);
public static Level mainLevel;