How can I detect a player's EXP level?

  • 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.

Nerf Thiss

New Member
Apr 19, 2020
8
0
1
22
Hey,
I'm trying to make a leveling system in one of my servers, where the higher your level is, the higher the maximum health you have.
At first, I tried this:
Code:
if players exp level is equal to 3:
    set the maximum health of the player to 6

But Skript can't seem to understand the event. (skript 1.15.2)
Is there any other way I could have Skript detect a player's level?
 
Code:
on level change:
    if player's level is 3:
        set player's max health to 6
 
Status
Not open for further replies.