Skip to content

How to use function getPlayerPermission?

ClickedTran_VN edited this page Jan 10, 2024 · 2 revisions

Like the function name, it is created to check the permission that player has, To make it easier for you to understand, it is similar to setuperms of PurePerms

Example: 
$player->sendMessage("Your permission are: ".$this->rankProvider->getPlayerPermission($player));

OR

$player->sendMessage("ClickedTran's permission: ".$this->rankProvider->getPlayerPermission("ClickedTran"));

And that's it, quite simple :)

Clone this wiki locally