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

Code for Banning someone?

Discussion in 'Development' started by kazuya, Jun 7, 2017.

  1. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    I want to ban players when they run a certain command..

    here's my thing so far.. addBan was guessed

    PHP:
    $player $event->getPlayer();
           
    $player->addBan();
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You won't get much done by guessing methods. This is how it is done when the /ban command is run.
     
  3. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    thanks mate
     
  4. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    kazuya likes this.
  5. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    jasonwynn10, Muqsit and corytortoise 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.