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

Help

Comments in 'Plugin Development' started by ZenCloud, May 17, 2014.

  1. ZenCloud
    Offline

    ZenCloud Active Member

    Joined:
    May 14, 2014
    Posts:
    61
    Minecraft User:
    ZenCloud
    Hey guys! I made a plugin and i want to combines it with a spleef plugin. But idk where to start if i make a spleef plugin.Can u guys tell me how?
  2. BlinkSun
    Offline

    BlinkSun Active Member Plugin Developer

    Joined:
    Mar 26, 2014
    Posts:
    128
    Plugins:
    4
    Minecraft User:
    BlinkSun
    Hint: don't copy/paste the spleef plugin for the respect of the author.
    Study the spleef plugin and start a new plugin with what you learned !
    64FF00 and PEMapModder like this.
  3. mr.ahmad
    Offline

    mr.ahmad Banned

    Joined:
    Mar 23, 2014
    Posts:
    25
    Minecraft User:
    mr.ahmad
    send me them in conversation and ill do it for you
  4. ZenCloud
    Offline

    ZenCloud Active Member

    Joined:
    May 14, 2014
    Posts:
    61
    Minecraft User:
    ZenCloud
    I dont want to copy them or have someone work for me , i just want someone to help me how can i do it, i dont know where to start, do i make the spleef start commands at first or not
  5. Myles Frost
    Offline

    Myles Frost Active Member

    Joined:
    Dec 10, 2013
    Posts:
    110
    Minecraft User:
    Mineplay
    Look at glitchmasters tutorial on how to make a pocketmine plugin.
  6. Anton Magsino
    Offline

    Anton Magsino Active Member

    Joined:
    Jan 17, 2014
    Posts:
    58
    Minecraft User:
    MinecrafterPH
    Glitchmaster's tutorial is for the old API. Check out PEMapModder's tutorial.
    64FF00 likes this.
  7. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    754
    Plugins:
    2
    Minecraft User:
    Darunia18
    Moved to Plugin Development.
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This depends on your experience. If you are not experienced enough, you might want to start on the commands first, and then make them work (since you can reverse your changes if you find things wrong)
    If you are experienced enough, you can plan the variables saving structure first, or even create a class that hosts an arena first (like me), and then instantiate instances of it and redirect player commands to the functions in the class. The latter is more favored if you could do it, because the readability is higher.

    Readability is a very important component in code. Not only when you share your code or ask for help it will be important, but also when you had a two-day rest and want to get back or try to remember what you were doing in that code.

    Important hint for coding:
    Always try to separate components in a function into other functions. Although you can do everything in a single place, it would be very hard and messy to read unless you have a super large screen.
    64FF00 likes this.
  9. ZenCloud
    Offline

    ZenCloud Active Member

    Joined:
    May 14, 2014
    Posts:
    61
    Minecraft User:
    ZenCloud
    Alright then! Thanks but can you tell me all the codes that pocketmine uses for the plugins! Like all of them. Are they in the forum. Maybe i didnt see it.
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Exactly what do you want?

    Maybe this:
    https://github.com/PocketMine/PocketMine-MP/
  11. ZenCloud
    Offline

    ZenCloud Active Member

    Joined:
    May 14, 2014
    Posts:
    61
    Minecraft User:
    ZenCloud
    I mean like is there a list of variables and codes like that , that plugin devs use
    Such as:
    public function init(){
    Like that i mean is there a list of
    codes or varibles that pocketmine uses
    Like
    Public - for........
    init - for ....
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Public means it can be called from anywhere. It is PHP thing not PocketMine.
    Init means initialize. But it is old API thing.

    What exactly do you want?
  13. ZenCloud
    Offline

    ZenCloud Active Member

    Joined:
    May 14, 2014
    Posts:
    61
    Minecraft User:
    ZenCloud
    I will try making a simple plugin. I will make it if i have time. So yeah if i finish , i will send the file and can u check it for me?
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Just write them. I am very helpful :)

Share This Page

Advertisement