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

Disable Chat

Comments in 'Plugin Development' started by Marttinek, Dec 21, 2016.

  1. Marttinek
    Offline

    Marttinek New Member

    Joined:
    Nov 22, 2015
    Posts:
    3
    Minecraft User:
    Marttinek
    what is wrong? plugin does not work

    class Main extends PluginBase implements Listener{

    public function onEnable(){
    $this->getLogger()->info("Stone Chat enabled");
    }

    public function onTalk(PlayerChatEvent $ev){
    if ($ev->getPlayer()->hasPermission("stone.chat")){
    $ev->setCancelled();
    }
    }
    }
  2. Magicode
    Offline

    Magicode Active Member

    Joined:
    Aug 3, 2016
    Posts:
    54
    Minecraft User:
    PokemonHero101
    Use the new forums
    HimbeersaftLP likes this.
  3. EdwardAllington
    Offline

    EdwardAllington Active Member

    Joined:
    Jan 29, 2015
    Posts:
    78
    Minecraft User:
    Edwardthedog2
    Please use the new forums at https://forums.pmmp.io instead. These forums are inactive now, and you are more likely to get help at the new ones.
    HimbeersaftLP likes this.
  4. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    the enable massage is redundant!!!
    well try registering events!
    HimbeersaftLP likes this.

Share This Page

Advertisement