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

How to wright a config and plugin.yml help

Comments in 'Plugin Development' started by MyAJVideo, Jun 21, 2015.

  1. HotFireyDeath
    Offline

    HotFireyDeath Notable Member Plugin Developer

    Joined:
    Mar 19, 2015
    Posts:
    328
    Plugins:
    1
    Minecraft User:
    HotFireyDeath
    See here for guide (not quite finished yet):
    https://github.com/PEMapModder/PocketMine-Plugin-Tutorials/wiki

    Credits go to @PEMapModder
    MyAJVideo likes this.
  2. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    Already read that and I'm already trying some stuf with isop() and is online and all that stuff but I can't test it because it won't work I'll send a screenshot later from the file system and hoppfoly someone can help
  3. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010

    Attached Files:

  4. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    386
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    That screenshot gives us almost 0 information....
    HotFireyDeath likes this.
  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Then the namespace should EXACTLY be:
    PHP:
    namespace MyAJVideo\StaffList
    And on the plugin.yml it should be:
    Code:
    main: MyAJVideo\StaffList\main
    MyAJVideo likes this.
  6. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    Best man ! I will try it after school
    Legoboy0215 likes this.
  7. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    I have the same problem again I have put everything what you sed I really need help is it maybe a pocket mine problem?

    Attached Files:

  8. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    The namespace is the path to your "Main PHP class", and your main class your be named "EXACTLY" the same as the file is, without the ".php" extension :p then in your Plugin file you need to write the namespace, followed by the CLASS name:
    <Namespace>\<Class Name>
  9. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    Ohhh inthe name space or plugin.yml
  10. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Yep. Sorry I cpoud not post a screenshot because I am a on a Kindle PaperWhite.
  11. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    But I have the big again
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Read my tutorial. It has been updated. It gives an in-depth explanation on how namespaces and class names work.

    http://lgpe.co/tut
  13. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    Perfect!! Yor awesome !!
  14. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    Sorry but copied it and it still wont work I did everything what you used :(
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Can you show me the complete file structure?
  16. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    Yes i can
  17. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    Here

    Attached Files:

  18. MyAJVideo
    Offline

    MyAJVideo Active Member

    Joined:
    May 16, 2015
    Posts:
    148
    Minecraft User:
    mrAJV2010
    hey I have send a screen shot i f you need anything else tell me

Share This Page

Advertisement