Solved Creating an 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 comminuty!

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

Razorix

New Member
Jun 15, 2017
6
0
1
21
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:

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");
Error log :
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 !