mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
Fix /opstats not actually recording mod commands. (Thanks AndyFC)
This commit is contained in:
parent
0659daba12
commit
2a80d04961
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user