-
Notifications
You must be signed in to change notification settings - Fork 0
How to use function unsetPlayerPermission?
ClickedTran_VN edited this page Jan 9, 2024
·
1 revision
As the function name suggests, it is used to remove special permissions from the player, similar to unsetuperm of PurePerms
Example:
if(!$this->rankProvider->getPlayerPermission($player) == "plugin.command.use"){
$this->rankProvider->unsetPlayerPermission($player, "plugin.command.use");
}
OR
if(!$this->rankProvider->getPlayerPermission("ClickedTran") == "plugin.command.use"){
$this->rankProvider->unsetPlayerPermission("ClickedTran", "plugin.command.use");
}See, it's very easy code and to remember :)