Hey Guys.. So there is a file named:"coins" So Guys.a event happen and the Plugin should write this in the Coins file: Code: [Playername,Coins],[Playername,Coins],..... So the Playername should be a Name and the Coins a Number... But how to write? With set()?
This code write like Code: playername: coin: 0 PHP: //Define $this->config as configuration,//If player joined server, add 1 coinfunction addOnJoin(PlayerJoinEvent $ev){ $player = $ev->getPlayer(); $name = $player->getName(); $this->config->set($name,array($this->config->get($name)["coin"]+1));} I didn't test, maybe, work...
So how to write? Like the Plugin VIPSlots ....the Plugin will create a vip list...I will create a coins list