-
Notifications
You must be signed in to change notification settings - Fork 0
How to use function giveRank?
ClickedTran_VN edited this page Jan 10, 2024
·
2 revisions
Like the function name, it is created to give the rank assigned to the player
Example:
if($this->rankProvider->getRank($player) != "Admin")){
echo "This player's rank is not Admin!";
}else{
$this->rankProvider->giveRank($player, "Owner");
}
OR
if($this->rankProvider->getRank("ClickedTran") != "Admin"){
echo "ClickedTran player rank is not Admin";
}else{
$this->rankProvider->giveRank("ClickedTran", "Owner");
}And that's it, quite simple, right?