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

Core Plugin??

Discussion in 'Development' started by Defications2po, May 4, 2017.

  1. Defications2po

    Defications2po Witch

    Messages:
    51
    Alright so i have been developing for about 1 month now and i have been seeing server like the great CosmicPe have only like what 6 plugins and i wonder how. My friends say its called a "core". It's like the main base of the server and reduces need of having many plugins. So i have not attempted to make this plugin because i don't know how to start it off i want it to have factions, custom enchants ,proxy blocker and other stuff i looked at someones plugin for reference but it did not work out how did he combine all his plugins in Core.php if someone can give me a lesson it will be highly appreciated

    help would be appreciated
     
  2. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    Well I have a core that I don't use no more and i have an image of how it would look like.
     

    Attached Files:

  3. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    If you mean putting it all into just a few files:

    It's done by efficiently creating a plugin that implements all of the features from multiple other plugins. Just copying and pasting the code from all plugins into one will not only create a monstrous amount of problems, but it also won't necessarily be much better. It isn't really combining plugins, it's more rewriting all of them into one. I don't suggest even considering a large plugin like that until you have more experience.
     
  4. Defications2po

    Defications2po Witch

    Messages:
    51
    i want to
    i want to make one because i can learn something out of it
     
  5. Defications2po

    Defications2po Witch

    Messages:
    51
    so what you mean is that you just add alot of plugins in one??????
    no Main file ???
     
  6. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    You completely missed the point...
    Yes there is a main file. All plugins have a main class to load everything. The closest thing I can say is like a core is EssentialsPE, which is because it is a rewritten plugin of many plugins in a single one. I suggest looking at how it was made and basing your core structure from it.
     
  7. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Also note that if you decide to use code from other plugins: Do not violate the licenses. It might become a license fiesta if you do so.
     
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    we sure would some mess regarding who claimed to be the first one to use player::sendMessage()
    mostly you should be fine copying things like PMMP method regardless of license...
     
    jasonwynn10 likes this.
  9. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    PMMP has a license that allows it, but I was more speaking about closed source plugins with possibly disallowing licenses.
     
  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.