1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Separating events

Discussion in 'Facepalm' started by Defications2po, Jul 7, 2017.

  1. Defications2po

    Defications2po Witch

    Messages:
    51
    So I am working on a core and I want to separate the events. SO what I mean is that I have a core. And in the events folder I want to add maybe PlayerJoinEvent.php so then what will I put in it. And also how to register it to the main class.
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    What is the actual question there?
     
  3. Zayd

    Zayd Witch

    Messages:
    55
    GitHub:
    ZaydPE
    Alright. First up Leo, you're going to have to do something called registering events onEnable().

    Search it up. It should be simple to find, okay Leo?
     
  4. Defications2po

    Defications2po Witch

    Messages:
    51
    I didn't think u register it the way you register your EventListener. OK I'll try
     
  5. Zayd

    Zayd Witch

    Messages:
    55
    GitHub:
    ZaydPE
    you do, obviously leo
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.