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

2 plugins to 1

Comments in 'Plugin Development' started by MyNameIsTriXz, Sep 24, 2016.

  1. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    I have 2 plugins:
    - ServerCore
    - Plugin

    Plugin is used to manage the minigame join mobs.
    I want to put the Main.php file from Plugin into ServerCore, it uses a lot of functions. So is there anything I should pay attention for when doing it? I have heard that you can only register the events in main class, is that true?
  2. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    If no functions overlap each other, you can just copy it over. You can register events to any class that implements Listener
    MyNameIsTriXz and XShockinFireX like this.

Share This Page

Advertisement