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

Level & Particles

Comments in 'Plugin Development' started by iDirtPlayzMC, Dec 19, 2015.

Thread Status:
Not open for further replies.
  1. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    PHP:
    public function onBreak(BlockBreakEvent $break){
             
    $player $break->getPlayer();
            if(!
    $player->isOp()){
                
    $player->sendTIP("§l§cHey! §7You are not allowed to do that here!");
                
    $level->addParticle(new SmokeParticle(new Vector3($x$y $z)));
                
    $break->setCancelled(true);
            return;
            }
        }
    Particle wont add :(
  2. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
Thread Status:
Not open for further replies.

Share This Page

Advertisement