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

Fehlermeldung ._.

Comments in 'Deutsch' started by WitherTube, May 28, 2016.

  1. WitherTube
    Offline

    WitherTube New Member

    Joined:
    Dec 21, 2015
    Posts:
    44
    Minecraft User:
    Wither_Tube
    Bei meinem plugin erscheint eine Fehlermeldung , die ich versucht habe zu beheben.
    Es ist mir aber nicht gelungen :/
    Fehlermeldung :
    PHP:
    [Server thread/ERROR]: Could not load 'C:\Users\XXXX\Desktop\PocketMine-MP\plugins\JumpKill' in folder 'C:\Users\XXXX\Desktop\PocketMine-MP\plugins\': yaml_parse(): scanning error encountered during parsing: mapping values are not allowed in this context (line 16, column 17)
    Mein Plugin :c :
    PHP:
    /**** _ _ _____ __ __ _____ _____ _____ __ __ ______ ______* | | | |(_)|__ __|| | | || ___|| \ |__ __|| | | | | __ || _____|* | | | || | | | | |_| || |___ | (__) \ | | | | | | | |__|_|| |____* | |____| || | | | | _ || ___|| | | | | | | | | __ || ____|* | __ || | | | | | | || |___ | | \ | | | | |_| | | |__| || |____* |__/ \__||_| |_| |__| |_ ||_____||__| \_| |_| |_______| |______||______|* This plugin was made by WitherTube :D.* It was published on PocketMine-Forum , GitHub or Twitter ^^.* For upcoming News follow me on Twitter and maybe subscribe my channel :D.*** @author WitherTube* @link Twitter : https://twitter.com/WitherDevPE* @link YouTube : https://www.youtube.com/channel/UCBcXzwKx27T1OEXCU9_NZiQ* @link Pocketmine : https://forums.pocketmine.net/members/withertube.40392/* @link GitHub : It is disabled :(**/namespace WitherTube ;use pocketmine\plugin\PluginBase;use pocketmine\event\Listener;use pocketmine\utils\TextFormat;use pocketmine\event\player\PlayerMoveEvent;use pocketmine\event\Cancellable;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\item\Item;use pocketmine\tile\Sign;use pocketmine\event\SignChangeEvent;use pocketmine\scheduler\PluginTask;use pocketmine\utils\Config;class JumpKill extends PluginBase implements Listener {public $prefix "[Jump" TextFormat::RED "Kill]";public $arenas = array();public $x1;public $x2;public $x3;public $x4;public $x5;public $y1;public $y2;public $y3;public $y4;public $y5;public $z1;public $z2;public $z3;public $z4;public $z5;public function onEnable(){$this->getServer()->getPluginManager()->registerEvents($this $this);$this->getServer()->getScheduler()->scheduleRepeatingTask(new RefreshSings($this) , 30);$this->getLogger()->info($this->prefix " wurde aktiviert");@mkdir($this->getDataFolder());$config = new Config ($this->getDataFolder() . "config.yml" Config::YAML);if(empty($config->get("X1"))){ $config->set("X1" 000);}if(empty($config->get("X2"))){ $config->set("X2" 000);}if(empty($config->get("X3"))){$config->set("X3" 000);}if(empty($config->get("X4"))){$config->set("X4" 000);}if(empty($config->get("X5"))){$config->set("X5" 000);}if(empty($config->get("Y1"))){$config->set("Y1" 000);}if(empty($config->get("Y2"))){$config->set("Y2" 000);}if(empty($config->get("Y3"))){$config->set("Y3" 000);}if(empty($config->get("Y4"))){$config->set("Y4" 000);}if(empty($config->get("Y5"))){$config->set("Y5" 000);}if(empty($config->get("Z1"))){$config->set("Z1" 000);}if(empty($config->get("Z2"))){$config->set("Z2" 000);}if(empty($config->get("Z3"))){$config->set("Z3" 000);}if(empty($config->get("Z4"))){$config->set("Z4" 000);}if(empty($config->get("Z5"))){$config->set("Z5" 000);}$x1 $config->get("X1");$x2 $config->get("X2");$x3 $config->get("X3");$x4 $config->get("X4");$x5 $config->get("X5");$y1 $config->get("Y1");$y2 $config->get("Y2");$y3 $config->get("Y3");$y4 $config->get("Y4");$y5 $config->get("Y5");$z1 $config->get("Z1");$z2 $config->get("Z2");$z3 $config->get("Z3");$z4 $config->get("Z4");$z5 $config->get("Z5");}public function Met(){$players $this->getServer()->getOnlinePlayers();foreach($players as $p){$pos = [new Position($this->x1 $this->y1 $this->z1) , new Position($this->x2 $this->y2 $this->z2) , new Position($this->x3 $this->y3 $this->z3), new Position($this->x4 $this->y4 $this->z4) ,new Position($this->x5 $this->y5 $this->z5) ]}}public function onJoin(PlayerJoinEvent $event){$players $event->getServer()->getOnlinePLayer();$choosenplayer $players[array_rand($players)] ;$item Item::DIAMOND_SWORD;foreach ($players as $player ){if($player!==$choosenplayer){$player->getInventory()->addItem($item);$id 8;$amplifier 3;$visibility false;$duration =0x7fffffff;$effect Effect::getEffect($id);$effect->setVisible($visibility);$effect->setDuration($duration);$effect->setAmplifier($amplifier);$choosenplayer->addEffect($effect);}public function onMove(PlayerMoveEvent $event){$players $this->getServer()->getOnlinePlayers();$choosenplayer $players[array_rand($players)];$this->getServer()->broadcastMessage($this->prefix " Spieler " $choosenplayer->getName() . " ist jetzt das Opfer , schnappt ihn euch !");}if ($players 5){$event->setCancelled(true);}else{$event->setCancelled(false);}public function onAttack(EntityDamageEvent $event){$victim $event->getEntity();foreach($this->players as $player){if($this->choosenplayer==$victim){$event->setCancelled(true);}else{$event->setCancelled(false);}}}}
  2. PaulchenHD
    Offline

    PaulchenHD Active Member

    Joined:
    Jan 17, 2016
    Posts:
    111
    Minecraft User:
    Paulchen_HD
    Ich denke mal du hast es gefixt ? :D
  3. PaulchenHD
    Offline

    PaulchenHD Active Member

    Joined:
    Jan 17, 2016
    Posts:
    111
    Minecraft User:
    Paulchen_HD
    wenn nicht : ich w├╝rde dir empfehlen den code nicht nur in eine zeile zu schreiben sondern mehrere zu nutzen das ist sehr un├╝bersichtlich zu lesen ^^

Share This Page

Advertisement