Hi there! I made a Skript for my job-related server and you need levels to rank up. You need level 50 or higher to rank up with a certain job command. I'm level 54, and it says I have to be at least level 50 to do it (It means I'm not a high enough level even though I am.)
If y'all could help me, that'd be amazing.
Here is my code:
If y'all could help me, that'd be amazing.
Here is my code:
Code:
command /resetlevel <player>:
permission: op
trigger:
set {level::%arg-1's uuid%} to 0
send "&aPlayer's level successfully reset!" to player
send "&cYour level has been reset by an admin! If this is abuse, contact the president immediately!" to arg-1
set {doctor::%arg-1's uuid%} to false
set {police::%arg-1's uuid%} to false
command /jobdoctor <player>:
permission: op
trigger:
if {doctor::%arg-1's uuid%} is false:
if {level::%arg-1's uuid%} is greater than 9:
execute console command "lp user %arg-1% parent set medic"
send "&aSuccessfully ranked to: &f&lDOCTOR" to arg-1
execute console command "kit medic %arg-1%"
set {doctor::%arg-1's uuid%} to true
else:
send "&cYou must be level 10 or higher to do this!" to arg-1
else:
send "&cYou already are a doctor!" to arg-1
command /level:
trigger:
send "&aYou are: &eLevel %{level::%player's uuid%}%"
command /jobpolice <player>:
permission: op
trigger:
if {police::%arg-1's uuid%} is false:
if {level::%arg-1's uuid%} is greater than 49:
execute console command "lp user %arg-1% parent set police"
send "&aSuccessfully ranked to: &9&lPolice" to arg-1
execute console command "kit police %arg-1%"
set {police::%arg-1's uuid%} to true