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

How can I create a plugin where I can seperate diffrent plugins and not write everything in Main.php

Discussion in 'Development' started by Remarkabless, Nov 11, 2017.

  1. Remarkabless

    Remarkabless Slime

    Messages:
    83
    GitHub:
    Remakem
    Hey, I want to know how to setup a core, i know there is a main file but what do I need to specify in each file for them to all work. The reason I wanna do this is because I want to add a ban system, staff system, crate system etc. but all together in one plugin. The rest of the other aspect plugins will be seperate but I want to a have a special system and dont want to have like 20 files in plugins folder
    Thanks
     
  2. NickTehUnicorn

    NickTehUnicorn Zombie

    Messages:
    200
    GitHub:
    unickorn
    TL;DR: How do I separate my code to several files and not write everything into Main.php?
     
    Remarkabless likes this.
  3. Remarkabless

    Remarkabless Slime

    Messages:
    83
    GitHub:
    Remakem
    Basically a Core from what ive heard
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Muqsit and Remarkabless like this.
  5. Remarkabless

    Remarkabless Slime

    Messages:
    83
    GitHub:
    Remakem
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you still need the mainfile
    you can register your eventlisteners etc of your eventlistener class/file using onenable
     
    jasonwynn10 likes this.
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
  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.