mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-08-03 19:36:14 -04:00
Log which level a player is kicked from for blockspam in IRC/console, too
(thanks 5parkSprained89)
This commit is contained in:
parent
4e698d93d6
commit
37f28d7f5a
@ -48,8 +48,8 @@ namespace MCGalaxy {
|
|||||||
Chat.MessageFromOps(p, "λNICK &Wwas kicked from " + p.level.name + " for suspected griefing.");
|
Chat.MessageFromOps(p, "λNICK &Wwas kicked from " + p.level.name + " for suspected griefing.");
|
||||||
|
|
||||||
Logger.Log(LogType.SuspiciousActivity,
|
Logger.Log(LogType.SuspiciousActivity,
|
||||||
"{0} was kicked for block spam ({1} blocks in {2} seconds)",
|
"{0} was kicked from {1} for block spam ({2} blocks in {3} seconds)",
|
||||||
p.name, blockLog.Count, oldestDelta);
|
p.name, p.level.name, blockLog.Count, oldestDelta);
|
||||||
p.Kick("You were kicked by antigrief system. Slow down.");
|
p.Kick("You were kicked by antigrief system. Slow down.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user