1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Modify log message interval

Discussion in 'Plugin Help' started by EerieAlchemist, Mar 20, 2020.

  1. EerieAlchemist

    EerieAlchemist Spider Jockey

    Messages:
    36
    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);
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    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.
     
    EerieAlchemist likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.