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

Editing the default kick message

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

  1. EerieAlchemist

    EerieAlchemist Spider Jockey

    Messages:
    36
    I've wanted to edit this anticheat plugin but am looking for a way to change the default kick message. I know I've asked a question like this before, but am still having trouble. I would like to completely remove the "kicked by admin. reason:" text and customize it as my own. Thanks for the help.

    PHP:
     if ($obs->Player != null && $obs->Player->isOnline())
          {
            
    $obs->Player->kick(TextFormat::ESCAPE."$cl$obs->KickMessage);
            if(
    $this->plugin->getConfig()->get("KickPlayerMessageBool"))
            {
              
    $msg $this->plugin->getConfig()->get("KickPlayerMessage");
              
    $smsg $obs->ScanMessage($msg);
              
    $this->plugin->getServer()->broadcastMessage(TextFormat::ESCAPE."$cl$smsg);
     
  2. Gianluxx

    Gianluxx Slime

    Messages:
    94
    GitHub:
    Gianluxx
    Code:
    $obs->player->kick("Oof to him", false);
     
    EerieAlchemist and Invy55 like 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.