Hi! I create plugin of passport for rp server, but i dont know how i can connect and give data in another plugin? Khm... Sorry of my English
I took the PurePerms plugin as an example, in the plugin from which I need to pull the data, I wrote this PHP: public function getGroup($p){ $name = $p->getName(); $och = $this->ocho->getAll(); $dir = $this->getServer()->getDataPath(); $content = file_get_contents($dir."plugins/RichardRadioStation/point_radio.json"); $data = json_decode($content, true); if(isset($ocho[$name])){ $this->ocho->get($name, $data["$name"]); } } after that, in the plugin that should accept this data, I made the following PHP: if($this->Eco->myMoney($p) >= 1000){ if($this->GI->getGroup($p) >= 5){ $this->Eco->reduceMoney($p, 1000); $this->rich->set($p->getName(), 1); $this->rich->save(); $p->sendMessage("§l§b» §fGreat job, your work is Police!"); } else { $p->sendMessage("§l§b» §сYou havent need exp!"); } } else { $p->sendMessage("§l§b» §сyou havent money!"); } But it not work, why?
PHP: $this->GI->getGroup($p) // this call doesn't return a value, you can't do comparison with void value