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

Inspiration How to start learning writing plugins

Comments in 'Resources' started by PEMapModder, Feb 8, 2014.

  1. igora
    Offline

    igora New Member

    Joined:
    Jun 8, 2014
    Posts:
    1
    Hi PEMapModder!

    Very useful tutorial! Thanks!

    I have got a question though.

    I am trying to reload my plugin while debugging when I have change its code to avoid restart of server and client as per your instructions, but when I run api->plugin->load() function give me:

    load TestPlugin

    11:02:11 [INFO] Loading plugin "TestPlugin" 0.1 by ArcaneKnight97

    11:02:11[ERROR] Failed loading plugin: class already exists

    11:02:11 init TestPlugin.

    Is there something I am doing wrong?

    (this is stable 1.3.3 release, btw).
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Restart your server. Don't be so lazy. Reload things are not easy to learn and handle right now.
  3. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    very very very very good but can you add how to make handeler
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    New API?
  5. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    yep
  6. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    I think it is confusing ! :(
  7. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  9. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    I see, lol.
  10. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    Does this all this work?
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This thread aims on how to learn, not to teach. These are universal and applicable in every code/API. I just shared my experience on learning coding, not to teach coding..
  12. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Thanks for all those Commands!
  13. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Ok!On your file wich is writen from you,there stay:(In this file Map...txt)||||||||
    For what is that in the other file:(In this file API.txt)???

    Attached Files:

  14. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    What can I write in it? My Plugin Project,or?
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This thread is to teach you how to learn to write, not to teach you how to write. You can use http://PEMapModder.Zapto.Org/pm/ to convert phar plugins you downloaded from the forums to zip so that you can view their contents and study them. You can also browse their plugins on GitHub if they have.

    You should read other tutorials, such as https://github.com/PEMapModder/PocketMine-Plugin-Tutorials to learn writing if you do not already know how to. Or I can give you one-to-one lessons if you find me on IRC channel #pmplugins.
  16. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Thanks!
  17. Creeperminer
    Offline

    Creeperminer Active Member

    Joined:
    Oct 12, 2014
    Posts:
    81
    Minecraft User:
    Creeperminer
    How do you register the commands I don't get how to code them
  18. Creeperminer
    Offline

    Creeperminer Active Member

    Joined:
    Oct 12, 2014
    Posts:
    81
    Minecraft User:
    Creeperminer
    ? I can't tell what is supposed to be put in the plugin
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    As I said, read plugin examples; what I was trying to do was not to teach you how to write, but to teach how to learn to write.
    Marcelo234 and Creeperminer like this.
  20. TrueBaccaAli
    Offline

    TrueBaccaAli Active Member

    Joined:
    Apr 6, 2015
    Posts:
    71
    To be honest OP, I don't like you how wrote this but A+ for effort.

Share This Page

Advertisement