1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Creating an event

Discussion in 'Java' started by Razorix, Dec 24, 2019.

  1. Razorix

    Razorix New Member

    Jun 15, 2017
    Likes Received:

    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 (Text):
    1. on payday:
    2.     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 (Text):
    1. Skript.registerEvent("Payday", EvtPayday.class, JobsPaydayEvent.class, "%entitydatas%'s payday");
    Error log :
    Code (Text):
    1. [12:55:50 ERROR]: There's no entity in an on payday event (script.sk, line 14: send "skriiiiiiiiiiiiiiiiiiiiipt" to event-entity')
    2. [12:55:50 INFO]: [Skript] Encountered 1 error while reloading script.sk!
    Thanks for the help !

Share This Page