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

Is having 10 PlayerJoinEvent in different classes bad

Discussion in 'Development' started by Levi, Jul 2, 2018.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    I have about 10 classes that listens to player join event. Does that affect the server performance ?
     
  2. Eduardo

    Eduardo Baby Zombie

    Messages:
    100
    GitHub:
    xBeastMode
    It might, because instead of looping though one it loops through ten in this case. Note that pocketmine checks for functions that contain an event parameter in each listener.
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    HimbeersaftLP and corytortoise like this.
  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.