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

Registering multiple listeners?

Comments in 'Plugin Development' started by Legoboy0215, Mar 16, 2016.

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Would this cause more lag than having all handlers in a single class and only registering a single file?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    For the same plugin, more than one listener at the same priority of the same event, not too good. But if it is necessary for you, say, if you are doing something like sub-plugins (ref: https://github.com/LegionPE/LegionPE-Eta look at the games namespace), it can be appropriate.
    Legoboy0215 likes this.

Share This Page

Advertisement