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

Syntax error

Discussion in 'Facepalm' started by Lorak9904, May 14, 2017.

  1. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    Hey, my plugin gives me an error... I dont know what is wrong in here...
    Code:
    CRITICAL]: ParseError: "syntax error, unexpected ';'" (EXCEPTION) in "myzip:///DropByLorak9904.zip#DropByLorak9904/src/drop/Main" at line 34
    
    PHP:
    public function onBreak(BlockBreakEvent $e){
            
    $player $e->getPlayer();
            
    $block $e->getBlock();
            
    $gracz $e->getPlayer()->getName();
         
    $blockhold $player->getInventory()->getItemInHand();
            if(
    $e->getBlock()->getId() == 1){
         if(
    $blockhold->getItem(Item::get(27801)){
                switch(
    mt_rand(1,400)){
             case 
    1:
     
  2. AnkitM252

    AnkitM252 Spider Jockey

    Messages:
    29
    GitHub:
    AnkitM252
    Provide your full code cause i can't see any error on there!
     
  3. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    So do I... Here...
    PHP:
    <?php

    namespace drop;

    use 
    pocketmine\plugin\PluginBase as P;
    use 
    pocketmine\event\Listener as L;
    use 
    pocketmine\utils\TextFormat;
    use 
    pocketmine\utils\MainLogger;
    use 
    pocketmine\block\Air;
    use 
    pocketmine\entity\Effect;
    use 
    pocketmine\event\block\BlockBreakEvent;
    use 
    pocketmine\level\sound\PopSound as Pop;
    use 
    pocketmine\level\particle\LavaParticle as Lava;
    use 
    pocketmine\block\Block;
    use 
    pocketmine\math\Vector3;
    use 
    pocketmine\item\Item;

    class 
    Main extends implements L{
      
        public function 
    onEnable(){
            
    $this->getServer()->getPluginManager()->registerEvents($this,$this);
            
    $this->saveDefaultConfig();
            
    $this->getServer()->getLogger()->info(TextFormat::GREEN."[db] Włączony!");
        }

      
        public function 
    onBreak(BlockBreakEvent $e){
            
    $player $e->getPlayer();
            
    $block $e->getBlock();
            
    $gracz $e->getPlayer()->getName();
         
    $blockhold $player->getInventory()->getItemInHand();
            if(
    $e->getBlock()->getId() == 1){
         if(
    $blockhold->getItem(Item::get(27801)){
                switch(
    mt_rand(1,400)){
             case 
    1:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Oko Pająka •");
             
    $player->getInventory()->addItem(Item::get(37602));
             break;
             case 
    2:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Lapisu Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35142));
             break;
             case 
    3:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Drewna •");
             
    $player->getInventory()->addItem(Item::get(1701));
             break;
             case 
    4:

            
    $player->sendMessage("§7• Znalazłeś §4(2) TNT •");
             
    $player->getInventory()->addItem(Item::get(4642));
             break;
             case 
    5:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Emeraldy •");
             
    $player->getInventory()->addItem(Item::get(38801));
             break;
             case 
    6:
              
    $player->sendMessage("§7• Znalazłeś §4(1) Lapisu Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35141));
             break;
             case 
    7:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diament •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    8:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Drewna •");
             
    $player->getInventory()->addItem(Item::get(1701));
             break;
             case 
    9:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Złota •");
             
    $player->getInventory()->addItem(Item::get(26601));
             break;
             case 
    10:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Pióro •");
             
    $player->getInventory()->addItem(Item::get(28801));
             break;
             case 
    11:
             
    $player->sendMessage("§7• Znalazłeś §4(3) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33103));
             break;
             case 
    12:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    13:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Jabłko •");
             
    $player->getInventory()->addItem(Item::get(26001));
             break;
             case 
    14:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    15:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Kość •");
             
    $player->getInventory()->addItem(Item::get(35201));
             break;
             case 
    16:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    17:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26301));
             break;
             case 
    18:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26302));
             break;
             case 
    19:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4901));
             break;
             case 
    20:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26302));
             break;
             case 
    21:
             
    $player->sendMessage("§7• Znalazłeś §4(5) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4905));
             break;
             case 
    22:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4902));
             break;
             case 
    23:
             
    $player->sendMessage("§7• Znalazłeś §6(1) Złote jabłko! •");
             
    $player->getInventory()->addItem(Item::get(32201));
             break;
             case 
    24:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Lapis Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35143));
             break;
             case 
    25:
            
    $player->sendMessage("§7• Znalazłeś §4(1) Emeraldy •");
             
    $player->getInventory()->addItem(Item::get(38801));
             break;
             case 
    26:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Lapis Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35142));
             break;
             case 
    27:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Pióra •");
             
    $player->getInventory()->addItem(Item::get(28802));
             break;
             case 
    28:
             
    $player->sendMessage("§7• Znalazłeś §4(2) BlazePowder •");
             
    $player->getInventory()->addItem(Item::get(37702));
             break;
             case 
    29:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    30:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    31:
             
    $player->sendMessage("§7• Znalazłeś §4(1) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33101));
             break;
             case 
    32:
             
    $player->sendMessage("§7• Znalazłeś §4(2) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33102));
             break;
             case 
    33:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Złoto •");
             
    $player->getInventory()->addItem(Item::get(26603));
             break;
             case 
    34:
             
    $player->sendMessage("§7• Znalazłeś §4(5) Brodawek •");
             
    $player->getInventory()->addItem(Item::get(37205));
             break;
             case 
    35:
             
    $player->sendMessage("§7• Znalazłeś §4(4) Łze Ghasta •");
             
    $player->getInventory()->addItem(Item::get(37004));
             break;
             case 
    36:
             
    $player->sendMessage("§7• Trafiłeś na: §6Szybsze kopanie §6•");
             
    $effect Effect::getEffect(3);
             
    $effect->setDuration(600);
             
    $player->addEffect($effect);
             
    $player->addExperience(1);
             break;
             case 
    37:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26403));
             break;



    }
    }
    }
            }
        }
    }
     
  4. AnkitM252

    AnkitM252 Spider Jockey

    Messages:
    29
    GitHub:
    AnkitM252
    PHP:
    <?php

    namespace drop;

    use 
    pocketmine\plugin\PluginBase as P;
    use 
    pocketmine\event\Listener as L;
    use 
    pocketmine\utils\TextFormat;
    use 
    pocketmine\utils\MainLogger;
    use 
    pocketmine\block\Air;
    use 
    pocketmine\entity\Effect;
    use 
    pocketmine\event\block\BlockBreakEvent;
    use 
    pocketmine\level\sound\PopSound as Pop;
    use 
    pocketmine\level\particle\LavaParticle as Lava;
    use 
    pocketmine\block\Block;
    use 
    pocketmine\math\Vector3;
    use 
    pocketmine\item\Item;

    class 
    Main extends implements L{
       
        public function 
    onEnable(){
            
    $this->getServer()->getPluginManager()->registerEvents($this,$this);
            
    $this->saveDefaultConfig();
            
    $this->getServer()->getLogger()->info(TextFormat::GREEN."[db] Włączony!");
        }

       
        public function 
    onBreak(BlockBreakEvent $e){
            
    $player $e->getPlayer();
            
    $block $e->getBlock();
            
    $gracz $e->getPlayer()->getName();
         
    $blockhold $player->getInventory()->getItemInHand();
            if(
    $e->getBlock()->getId() == 1){
         if(
    $blockhold->getItem(Item::get(27801))){
                switch(
    mt_rand(1,400)){
             case 
    1:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Oko Pająka •");
             
    $player->getInventory()->addItem(Item::get(37602));
             break;
             case 
    2:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Lapisu Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35142));
             break;
             case 
    3:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Drewna •");
             
    $player->getInventory()->addItem(Item::get(1701));
             break;
             case 
    4:

            
    $player->sendMessage("§7• Znalazłeś §4(2) TNT •");
             
    $player->getInventory()->addItem(Item::get(4642));
             break;
             case 
    5:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Emeraldy •");
             
    $player->getInventory()->addItem(Item::get(38801));
             break;
             case 
    6:
              
    $player->sendMessage("§7• Znalazłeś §4(1) Lapisu Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35141));
             break;
             case 
    7:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diament •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    8:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Drewna •");
             
    $player->getInventory()->addItem(Item::get(1701));
             break;
             case 
    9:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Złota •");
             
    $player->getInventory()->addItem(Item::get(26601));
             break;
             case 
    10:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Pióro •");
             
    $player->getInventory()->addItem(Item::get(28801));
             break;
             case 
    11:
             
    $player->sendMessage("§7• Znalazłeś §4(3) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33103));
             break;
             case 
    12:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    13:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Jabłko •");
             
    $player->getInventory()->addItem(Item::get(26001));
             break;
             case 
    14:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    15:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Kość •");
             
    $player->getInventory()->addItem(Item::get(35201));
             break;
             case 
    16:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    17:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26301));
             break;
             case 
    18:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26302));
             break;
             case 
    19:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4901));
             break;
             case 
    20:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26302));
             break;
             case 
    21:
             
    $player->sendMessage("§7• Znalazłeś §4(5) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4905));
             break;
             case 
    22:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4902));
             break;
             case 
    23:
             
    $player->sendMessage("§7• Znalazłeś §6(1) Złote jabłko! •");
             
    $player->getInventory()->addItem(Item::get(32201));
             break;
             case 
    24:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Lapis Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35143));
             break;
             case 
    25:
            
    $player->sendMessage("§7• Znalazłeś §4(1) Emeraldy •");
             
    $player->getInventory()->addItem(Item::get(38801));
             break;
             case 
    26:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Lapis Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35142));
             break;
             case 
    27:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Pióra •");
             
    $player->getInventory()->addItem(Item::get(28802));
             break;
             case 
    28:
             
    $player->sendMessage("§7• Znalazłeś §4(2) BlazePowder •");
             
    $player->getInventory()->addItem(Item::get(37702));
             break;
             case 
    29:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    30:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    31:
             
    $player->sendMessage("§7• Znalazłeś §4(1) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33101));
             break;
             case 
    32:
             
    $player->sendMessage("§7• Znalazłeś §4(2) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33102));
             break;
             case 
    33:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Złoto •");
             
    $player->getInventory()->addItem(Item::get(26603));
             break;
             case 
    34:
             
    $player->sendMessage("§7• Znalazłeś §4(5) Brodawek •");
             
    $player->getInventory()->addItem(Item::get(37205));
             break;
             case 
    35:
             
    $player->sendMessage("§7• Znalazłeś §4(4) Łze Ghasta •");
             
    $player->getInventory()->addItem(Item::get(37004));
             break;
             case 
    36:
             
    $player->sendMessage("§7• Trafiłeś na: §6Szybsze kopanie §6•");
             
    $effect Effect::getEffect(3);
             
    $effect->setDuration(600);
             
    $player->addEffect($effect);
             
    $player->addExperience(1);
             break;
             case 
    37:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26403));
             break;



    }
    }
    }
            }
        }
    Use this ^ code!
     
  5. Defications2po

    Defications2po Witch

    Messages:
    51
    i cant read that
     
  6. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    In spoiler?
     
  7. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    What is changed?
     
  8. AnkitM252

    AnkitM252 Spider Jockey

    Messages:
    29
    GitHub:
    AnkitM252
    On line 33 ) was missing and at the last line, } was more!
     
    Last edited: May 14, 2017
  9. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    Code:
     ParseError: "syntax error, unexpected 'switch' (T_SWITCH)" (EXCEPTION) in "myzip:///DropByLorak9904.zip#DropByLorak9904/src/drop/Main" at line 34
    
     
  10. AnkitM252

    AnkitM252 Spider Jockey

    Messages:
    29
    GitHub:
    AnkitM252
    That code was yours! Here:
    PHP:
    <?php
    namespace drop;
    use 
    pocketmine\plugin\PluginBase as P;
    use 
    pocketmine\event\Listener as L;
    use 
    pocketmine\utils\TextFormat;
    use 
    pocketmine\utils\MainLogger;
    use 
    pocketmine\block\Air;
    use 
    pocketmine\entity\Effect;
    use 
    pocketmine\event\block\BlockBreakEvent;
    use 
    pocketmine\level\sound\PopSound as Pop;
    use 
    pocketmine\level\particle\LavaParticle as Lava;
    use 
    pocketmine\block\Block;
    use 
    pocketmine\math\Vector3;
    use 
    pocketmine\item\Item;
    class 
    Main extends implements L{
       
        public function 
    onEnable(){
            
    $this->getServer()->getPluginManager()->registerEvents($this,$this);
            
    $this->saveDefaultConfig();
            
    $this->getServer()->getLogger()->info(TextFormat::GREEN."[db] Włączony!");
        }
       
        public function 
    onBreak(BlockBreakEvent $e){
            
    $player $e->getPlayer();
            
    $block $e->getBlock();
            
    $gracz $e->getPlayer()->getName();
         
    $blockhold $player->getInventory()->getItemInHand();
            if(
    $e->getBlock()->getId() == 1){
         if(
    $blockhold->getItem(Item::get(27801))){
                switch(
    mt_rand(1,400)){
             case 
    1:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Oko Pająka •");
             
    $player->getInventory()->addItem(Item::get(37602));
             break;
             case 
    2:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Lapisu Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35142));
             break;
             case 
    3:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Drewna •");
             
    $player->getInventory()->addItem(Item::get(1701));
             break;
             case 
    4:
            
    $player->sendMessage("§7• Znalazłeś §4(2) TNT •");
             
    $player->getInventory()->addItem(Item::get(4642));
             break;
             case 
    5:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Emeraldy •");
             
    $player->getInventory()->addItem(Item::get(38801));
             break;
             case 
    6:
              
    $player->sendMessage("§7• Znalazłeś §4(1) Lapisu Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35141));
             break;
             case 
    7:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diament •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    8:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Drewna •");
             
    $player->getInventory()->addItem(Item::get(1701));
             break;
             case 
    9:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Złota •");
             
    $player->getInventory()->addItem(Item::get(26601));
             break;
             case 
    10:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Pióro •");
             
    $player->getInventory()->addItem(Item::get(28801));
             break;
             case 
    11:
             
    $player->sendMessage("§7• Znalazłeś §4(3) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33103));
             break;
             case 
    12:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    13:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Jabłko •");
             
    $player->getInventory()->addItem(Item::get(26001));
             break;
             case 
    14:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    15:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Kość •");
             
    $player->getInventory()->addItem(Item::get(35201));
             break;
             case 
    16:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Żelaza •");
             
    $player->getInventory()->addItem(Item::get(26501));
             break;
             case 
    17:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26301));
             break;
             case 
    18:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26302));
             break;
             case 
    19:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4901));
             break;
             case 
    20:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Węgla •");
             
    $player->getInventory()->addItem(Item::get(26302));
             break;
             case 
    21:
             
    $player->sendMessage("§7• Znalazłeś §4(5) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4905));
             break;
             case 
    22:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Obsydian •");
             
    $player->getInventory()->addItem(Item::get(4902));
             break;
             case 
    23:
             
    $player->sendMessage("§7• Znalazłeś §6(1) Złote jabłko! •");
             
    $player->getInventory()->addItem(Item::get(32201));
             break;
             case 
    24:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Lapis Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35143));
             break;
             case 
    25:
            
    $player->sendMessage("§7• Znalazłeś §4(1) Emeraldy •");
             
    $player->getInventory()->addItem(Item::get(38801));
             break;
             case 
    26:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Lapis Lazuli •");
             
    $player->getInventory()->addItem(Item::get(35142));
             break;
             case 
    27:
             
    $player->sendMessage("§7• Znalazłeś §4(2) Pióra •");
             
    $player->getInventory()->addItem(Item::get(28802));
             break;
             case 
    28:
             
    $player->sendMessage("§7• Znalazłeś §4(2) BlazePowder •");
             
    $player->getInventory()->addItem(Item::get(37702));
             break;
             case 
    29:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    30:
             
    $player->sendMessage("§7• Znalazłeś §4(1) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26401));
             break;
             case 
    31:
             
    $player->sendMessage("§7• Znalazłeś §4(1) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33101));
             break;
             case 
    32:
             
    $player->sendMessage("§7• Znalazłeś §4(2) RedStona •");
             
    $player->getInventory()->addItem(Item::get(33102));
             break;
             case 
    33:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Złoto •");
             
    $player->getInventory()->addItem(Item::get(26603));
             break;
             case 
    34:
             
    $player->sendMessage("§7• Znalazłeś §4(5) Brodawek •");
             
    $player->getInventory()->addItem(Item::get(37205));
             break;
             case 
    35:
             
    $player->sendMessage("§7• Znalazłeś §4(4) Łze Ghasta •");
             
    $player->getInventory()->addItem(Item::get(37004));
             break;
             case 
    36:
             
    $player->sendMessage("§7• Trafiłeś na: §6Szybsze kopanie §6•");
             
    $effect Effect::getEffect(3);
             
    $effect->setDuration(600);
             
    $player->addEffect($effect);
             
    $player->addExperience(1);
             break;
             case 
    37:
             
    $player->sendMessage("§7• Znalazłeś §4(3) Diamenty •");
             
    $player->getInventory()->addItem(Item::get(26403));
             break;
    }
    }
    }
            }
        }
     
  11. Lorak9904

    Lorak9904 Witch

    Messages:
    58
    Code:
    /CRITICAL]: ParseError: "syntax error, unexpected '{'" (EXCEPTION) in "myzip:///DropByLorak9904.zip#DropByLorak9904/src/drop/Main" at line 16
    
     
  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.