Hey Guys......If I run this code with the Plugin "Yolo":This happens when a Player join.... PHP: $this->lobby[strtolower($player->getName())] = $player; And this code with the Plugin "Haha" :This will happen when a Player left the game... PHP: unset($this->lobby[strtolower($player->getName())]); .... Will this work?
PHP: $yolo = $this->getServer()->getPluginManager()->getPlugin("Yolo");unset($yolo->lobby[strtolower($player->getName())]); Please learn OOP
One Question more....I say $yolo->onYuhu($player); BUT the public function from the Plugin Yolo isnt in the Main.php......Its in a other class...How to write it than?
At least in Spain, if you want start with any programming language in an academy, the first thing that they teach you is basic ENGLISH. To cut straight: Learn english will be better that learn PHP/OOP.