[Help] merge two plugins into one.

Discussion in 'Plugin Development' started by Bc1151, Sep 23, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Bc1151

    i want to merge two of my plugins into one, but i have no idea how to call the old main classes into a new one.

    Please Help.

    Thanks In Advanced

    - Bc1151

    Guys?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  2. Offline

    MCForger

    Well code could help. Plus just recode a main class to handle both the old two main classes.
     
  3. Offline

    Bc1151

    cant i just import the other two classes or something?
     
  4. Offline

    MCForger

    Yes. You can import both and they could carry different tasks. What I did is I made an API. Which the plugins main classes call on different classes to register different things. Import both main into a main class and register those two classes. I recommend to create a constructor for the other two classes.
     
  5. Offline

    Bc1151

    umm i dont mean to sound stupid, but how do i make a constuctor?

    (bad memory)

    huh?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  6. Offline

    MrFigg

  7. Offline

    Bc1151

    am am farmiliar with java; i have made many thousands of lines of working code. but i have short term, and long term memory loss.
     
  8. Offline

    MrFigg

Thread Status:
Not open for further replies.

Share This Page