My Server say when i my Plugin Load that there a unexpected “;“ is , but there is only 1 ; Here is the Line in there the error is PHP: $helmet = Item::get(306);
Here is the Code. In the last Line say RCON there is a unexpecpted “;“ PHP: <?phpnamespace Main;use pocketmine\plugin\PluginBase;use pocketmine\utils\TextFormat as C;use pocketmine\item\Item;use pocketmine\block\Block;use pocketmine\Player;use pocketmine\event\Listener;use pocketmine\event\player\PlayerJoinEvent;use pocketmine\event\player\PlayerQuitEvent;use pocketmine\event\player\PlayerRespawnEvent;use pocketmine\event\player\PlayerDeathEvent;use pocketmine\entity\Entity;use pocketmine\entity\Effect;use pocketmine\event\block\BlockBreakEvent;use pocketmine\event\block\BlockPlaceEvent;use pocketmine\level\Level;use pocketmine\math\Vector3;use pocketmine\item\enchantment\Enchantment;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\Server;use pocketmine\event\entity\EntityDamageEvent;use pocketmine\event\entity\EntityDamageByEntityEvent;use pocketmine\utils\Config;use pocketmine\event\player\PlayerInteractEvent;class SoupFFA extends PluginBase implements Listener { public $prefix = C::AQUA. "Soup". C::RED . "FFA" . C::GRAY . " | "; public function onEnable() { @mkdir($this->getDataFolder()); $cfg = new Config($this->getDataFolder(). "config.yml", Config::YAML); if(empty($cfg->get("SpawnSchutz"))) { $cfg->set("SpawnSchutz", 5); } $cfg->save(); $this->getServer()->getPluginManager()->registerEvents($this, $this); $this->getLogger()->info($this->prefix . C::GREEN . " wurde Aktiviert!"); $this->getLogger()->info($this->prefix . " Plugin von " . C::GOLD . ("Von Jonas"); } public function onJoin(PlayerJoinEvent $event) { $player = $event->getPlayer(); $name = $player->getName(); $player->getInventory()->clearAll(); $event->setJoinMessage($this->prefix. C::RED. $name. C::GOLD. " hat das Spiel betreten"); $player->teleport($this->getServer()->getDefaultLevel()->getSafeSpawn()); $player->setGamemode(0); $player->setFood(20); $player->setHealth(20); if($player->hasPermisson("FFA.ITEMS.VIP"){ $helm = Item::get(306);