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

server restart

Discussion in 'Development' started by Angel, Aug 18, 2019.

  1. Angel

    Angel Spider Jockey

    Messages:
    44
    GitHub:
    aimjel
    PlayerQuitEvent isn't get triggered when server restarts? I wanna remove players item when they quit which works normally but when I restart the server and join back my items aren't removed.
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Event handlers unregister before plugins disable. Do it during Plugin::onDisable()
     
    Awzaw, HimbeersaftLP and Fadhel 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.