Skip to content

How to use function setPlayerPermission?

ClickedTran_VN edited this page Jan 9, 2024 · 1 revision

Like the function name, it is used to set privileges specific to that player

Example:
if($this->rankProvider->getPlayerPermission($player) != "plugin.command.use"){
    $this->rankProvider->setPlayerPermission($player, "plugin.command.use");
}

OR

if($this->rankProvider->getPlayerPermission("ClickedTran") != "plugin.command.use"){
    $this->rankProvider->setPlayerPermission("ClickedTran", "plugin.command.use");
}

It's quite simple, right? 😉

Clone this wiki locally