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

Multiple PluginBases in a single plugin?

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

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Is this bad, or simply just bad practice? Does it interfere with anything?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Why do you need to extend PluginBase in the first place? Even if you extend PluginBase, if you don't init it properly, its functions won't work either.
    applqpak likes this.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Eh.. I am not doing that. I mean I saw other plugins do that :D
    applqpak likes this.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Unless you're playing with plugin loaders like https://GitHub.com/PEMapModder/LazyPaml, I don't see why you might need to extend PluginBase in places other than the main class. it simply won't do you any good.
    applqpak likes this.
  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Oh, ok! I wanted to merge two plugins but one of them had a lot of PluginBase classes.

Share This Page

Advertisement