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

Solved How to unregister listener(s) from plugin

Discussion in 'Development' started by ethaniccc, May 7, 2020.

  1. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    So I'm making a custom events plugin for me and my friends to enjoy, and there are multiple events. I only want to register certain events though and unregister every other event in my plugin. Is there any way to do this?

    Thanks in advance!
     
  2. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    I think I found a solution (I should just use https://www.google.com/ next time lol):
    PHP:
    HandlerList::unregisterAll($this);
     
    driver1848 and HimbeersaftLP 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.