Solved No player in an jump event

  • 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 community!

    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.

boxgames1

Member
Feb 10, 2022
2
0
1
I'm writing some code so that only job seekers can't jump, but it's not working.

My Code
Code:
on jump:
    if {%event-player%.job} == "Seeker":
        cancel event

Error Message
Code:
[12:11:36] [Server thread/ERROR]: §c§lLine 71:§7 (code.sk)
§c    There's no player in an on jump event event
§6    Line: §7if {%player%.job} == "Seeker":
 §r

My Plugins
Skript 2.6.1
SkQuery 4.1.6

I tried again by replacing %player% with %event-player% and %event-entity% but it doesn't work.
And if I block the jump with a big jump effect, the potion the player drank will lose the effect, so I can't give the jump effect.

Any solution?
 
Code:
on jump:
    loop all players:
        if {%loop-player%.job} === "Seeker":
            cancel event
get skrayfall then try this
 
Status
Not open for further replies.