-
Notifications
You must be signed in to change notification settings - Fork 0
How to use function getRankData?
ClickedTran_VN edited this page Jan 11, 2024
·
2 revisions
This function will check whether the rank you enter is in the data or not
Example:
if(empty($this->rankProvider->getRankData("Admin"))){
echo "Rank Admin not exists in data!";
}else{
echo "Rank Admin exists in data!";
}And that's it, this function was created for you to make plugins like RankShop, And it often comes with the giveRank or removeRank!
Example:
if(empty($this->rankProvider->getRankData("Admin"))){
echo "Rank Admin not exists in data!";
}else{
$this->rankProvider->giveRank("ClickedTran", "Admin");
//Something....
}