I've been looking on how to use it, but I couldnt find it I want to know how to set a players group and check a players group, Thank you!
Maybe have a look at https://github.com/Falkirks/RankUp/blob/master/src/rankup/permission/PurePerms.php. Assume $this is a PluginBase object and $player is a Player object. Getting the API PHP: $api = $this->getServer()->getPluginManager()->getPlugin("PurePerms") Adding a player to a group PHP: $ppGroup = $api->getGroup("groupName");$api->setGroup($player, $ppGroup); Checking a player's group PHP: $api->getUserDataMgr()->getGroup($player)->getName(); // Returns the group name of a player
You don't need that though...your not constructing anything of that type. If it's a return type you don't need a use comment, because once it's been returned by another function the interpreter knows what type to use. I use that in my code because I have PHP: $ppGroup instanceof PPGroup The interpreter can't guess which PPGroup I am referring to, so I need a use statement for it.