sorry for the derangement but I have a problem with my plugin to remove the function of the cake. But this one causes crash. you can help me please. http://www.mediafire.com/?e3p2hree1wrbc7q
J'essaye de faire en sorte que le gâteau ne s'active pas . Qu'on ne puisse pas le manger . I try to ensure that the cake will not activate. We can not eat it.
PHP: if (!file_exists($this->getDataFolder())) { @mkdir ($this->getDataFolder(), 0700, true); } $this->getServer()->getPluginManager()->registerEvents($this, $this); $this->config = new Config($this->getDataFolder() . "config.yml", Config::YAML, array( "CAKE_BLOCK" => true, PHP: public function onPlayerInteract(PlayerInteractEvent $event){ if((!$this->getConfig()->get("CAKE_BLOCK")) { $event->getBlock() === Block::CAKE_BLOCK); $event->setCanceled(); $event->getPlayer()->sendMessage("Sorry, this CAKE_BLOCK is disabled!"); } } peut être que c'est n'importe quoi , je ne suis pas en mesure de faire un truc propre avec mon téléphone