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

New plugin help

Comments in 'Plugin Development' started by GamesLoad, Jun 30, 2014.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Ahh my ancient SSS plugin...
  2. xionbig
    Offline

    xionbig Active Member Plugin Developer

    Joined:
    Jun 11, 2014
    Posts:
    106
    Plugins:
    2
    Minecraft User:
    NikoZazza
    PHP:
     public function playerBlockTouch(PlayerInteractEvent $event){
            
    $player $event->getPlayer();
            
    $block $event->getBlock()->getID();
         
            if(
    $block == 323 || $block == 63 || $block == 68){
                
    $x$event->getBlock()->getX();
                
    $y$event->getBlock()->getY();
                
    $z$event->getBlock()->getZ();
                
    $world $event->getBlock()->getLevel();
            
                
    $var $x.":".$y.":".$z.":".$world;
                if(!
    $this->read->exists($var)){
                   
    $this->read->set($var,  array("picked" => $player->getDislayName()));
    $this->read->save();
                }
            }
        }
  3. GamesLoad
    Offline

    GamesLoad Active Member

    Joined:
    Jun 28, 2014
    Posts:
    106
    Minecraft User:
    GamesLoad
    very good but now as required under the command
    xionbig likes this.

Share This Page

Advertisement