I'm writing some code so that only job seekers can't jump, but it's not working.
My Code
Error Message
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?
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?