I’m editing a plugin and trying to figure out how to modify the interval to which anticheat logs appear to staff members. When a player is detected for using cheats, the logs indicate it but they do it at such a fast rate that the chat is spammed. How can I edit this interval? PHP: if ($this->PlayerAirCounter > $this->GetConfigEntry("Fly-Threshold")) { if ($this->GetConfigEntry("Fly-Punishment") == "kick") { $event->setCancelled(true); $this->ResetObserver(); $message = $this->GetConfigEntry("Fly-LogMessage"); $reason = $this->GetConfigEntry("Fly-Message"); $this->NotifyAdmins($message); $this->KickPlayer($reason); } if ($this->GetConfigEntry("Fly-Punishment") == "block") { $event->setCancelled(true); $message = $this->GetConfigEntry("Fly-LogMessage"); $this->NotifyAdmins($message);
You will need to accumulate the detected cheats and then have a task that sends them to the mods every x seconds. If the plugin's developer is still active, you should try requesting that feature in case you don't have enough experience to do a change like this, yet.