SOLVED!
Hello !
I try to make a custom event, and I somehow succeed for making this, but I not really achieved my goal..
Long story short, I've a payday system, and a custom bukkit event for it, that works perfectly, and I want to add one to Skript, for example:
But the part with the event-player's not working, I've tried several things to achieve this but no one worked :/
Here's the useful things:
EvtPayday class : https://pastebin.com/CZtreR7E
Registration line :
Error log :
Thanks for the help !
Hello !
I try to make a custom event, and I somehow succeed for making this, but I not really achieved my goal..
Long story short, I've a payday system, and a custom bukkit event for it, that works perfectly, and I want to add one to Skript, for example:
Code:
on payday:
send "You got your salary!" to event-player
But the part with the event-player's not working, I've tried several things to achieve this but no one worked :/
Here's the useful things:
EvtPayday class : https://pastebin.com/CZtreR7E
Registration line :
Code:
Skript.registerEvent("Payday", EvtPayday.class, JobsPaydayEvent.class, "%entitydatas%'s payday");
Code:
[12:55:50 ERROR]: There's no entity in an on payday event (script.sk, line 14: send "skriiiiiiiiiiiiiiiiiiiiipt" to event-entity')
[12:55:50 INFO]: [Skript] Encountered 1 error while reloading script.sk!
Thanks for the help !