Solved PlaceholderAPI integration

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Cooleeo

Member
Apr 18, 2018
17
1
0
24
hey, so basically this skript places the player in a group if they've reached 2000 points
code_language.skript:
on join:
    set {_score} to placeholder "playerpoints_points"
    message "&eYOU HAVE %{_score}% POINTS"
    if {_score} is more than 2000:
        execute console command "pex user %player% group set pro"
        message "&5&l(&fI&5&l) &aCongratulations! You've entered Pro League"
        wait 10 seconds

not sure why, but it doesn't seem to be executing the if statement. no console output or anything
 
Did you register the placeholder In-Game using PlaceholderAPI for "playerpoints_points"?
 
Status
Not open for further replies.