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

Teach yourself by reading the source

Discussion in 'Resources' started by Intyre, Dec 7, 2016.

  1. Intyre

    Intyre Administrator Staff Member PMMP Team

    Messages:
    81
    GitHub:
    Intyre
    Instead of asking questions you could start reading the source. Everything anyone can do with PocketMine is in there.

    "But there are many files! Where should I start?"
    The obvious answer to that would be either start.sh or start.cmd.

    "But that isn't a PHP file! Why do I need to read it?"
    When you read one of the start files you'll find the first clue "./src/pocketmine/PocketMine.php".
    It all starts with PocketMine.php.

    "Ok! Now what?"
    If you know PHP you know how functions and classes and objects work.
    Read PocketMine.php and try to understand what the code is doing.
    When you see a function or class you want to know more about then use the search function on http://php.net or https://github.com/pmmp/PocketMine-MP.

    We are not here to hold your hand or spoon feed you.
    You want to make a plugin so you also have to put some effort into it.
    Be specific when you ask questions. Provide code to show your effort.
    When you do all that and your plugin works you can be proud at yourself.
     
    Diduhless, Levi, VpsOP and 16 others like this.
  2. archie426

    archie426 Baby Zombie

    Messages:
    130
    GitHub:
    archie426
    Could you make this thread sticky? Just so people who come here years later will get the message
     
    Matthew likes this.
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    In this sense, every thread in the Resources forum should be sticky.

    We should have a StackOverflow documentation style resources forum to put the best threads on the top :D
     
    Dyntes, VpsOP, OnTheVerge and 4 others like this.
  4. archie426

    archie426 Baby Zombie

    Messages:
    130
    GitHub:
    archie426
    Oh yeah, I didn't think about that
     
    Last edited: Dec 7, 2016
    VpsOP, HimbeersaftLP and Matthew like this.
  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.