Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

whitelist custom message

Comments in 'Plugin Development' started by Seetch, Dec 2, 2015.

  1. Seetch
    Offline

    Seetch New Member

    Joined:
    Feb 5, 2015
    Posts:
    22
    Minecraft User:
    Seetch
    how to create custom whitelist message, dont use plugin
  2. Seetch
    Offline

    Seetch New Member

    Joined:
    Feb 5, 2015
    Posts:
    22
    Minecraft User:
    Seetch
    other plugin*
  3. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    PHP:
        public function onPlayerPreLogin(PlayerPreLoginEvent $event){
            
    $player $event->getPlayer();
            if(!
    $this->getServer()->isWhitelisted($player->getName()) && $this->getServer()->getWhitelisted()){
                
    $player->kick("Custom Message",true);
            }
        }
    BTW, next time please use the search bar
    https://forums.pocketmine.net/threads/whitelist.12391/

Share This Page

Advertisement