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

full plugin programming tutorial

Comments in 'Plugin Development' started by Tester_master, May 12, 2016.

  1. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    hello I would like for some people to show tutorials of how to program pocketmine plugins I know theres already some tutorials and main ones on pocketmine's github except a plugin tutorial that shows everything like to show all the different types of functions you can make it do and like how you can make a format with blocks or a sign or how to build a format required and make it function into something while If it is correct I know about }else{ except take economy's sign shop for example and how to get a users x y z and like how to add support to blocks for the server (some servers might use it) and like how to change block functions to make it run something if stepped on or tapped on and how to send users to another server and like how to make a plugin change the main core of pocketmine's settings such as the way the server runs ad we could add support for blocks weather nether and more there the tutorials don't show everything about how to make a pocketmine plugin on Youtube I cant even find a valid 14.0 tutorial there's only very little 11.0 ones that don't teach everything about it and not even how to change block functions
  2. Survingo
    Offline

    Survingo Active Member

    Joined:
    Dec 6, 2015
    Posts:
    221
    Umm... I think I got what you mean..

    A complete user-friendly up-to-date documentation/tutorial for plugins?
    Like my @Plugin Helper?
    Primus likes this.
  3. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    what do you mean
  4. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    learning pocketmine api feature failed not the programming part except it shows how to do it where you code not the learn part
    Survingo likes this.
  5. Extreme_Heat
    Offline

    Extreme_Heat Active Member

    Joined:
    Apr 19, 2016
    Posts:
    76
    Minecraft User:
    Extreme_Heat
    If you plan on writing PocketMine plugins, you need to learn PHP and be fluent in it first.

    You don't need to be extremely knowledgeable, just know the basics and understand what your code is doing. You'll pick up other stuff along the way.

    There's plenty of PHP tutorials out there, if you're new to programming then you may want to check out something like Code Academy.
    AndrewBit likes this.
  6. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    I actually quit C++ as a beginner and know some not very much of HTML
    <p> paragraph <p>
    And the pocketmine tutorials are outdated and I'm not that good of JavaScript and HTML JavaScript CSS are the Main ones you need to know for web programming I know a little bit of php not very much except this code is used for programming websites I might of typed it wrong anyway
    <?php

    Function start() {
    Echo "click start"
    Survingo likes this.
  7. Extreme_Heat
    Offline

    Extreme_Heat Active Member

    Joined:
    Apr 19, 2016
    Posts:
    76
    Minecraft User:
    Extreme_Heat
    Then yes, you need to become fluent in PHP before thinking about making plugins for PocketMine. Programming in general, from the sound of things.

    C/C++ requires a deep understanding of computing at a low level. If you're not familiar with computer architecture, then you should be avoiding it - even if you did have expert PHP skills.
    Survingo likes this.
  8. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    GitHub itself is documentation. Learn from that or from other plugins. If you can't stick to that, give up.
  9. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    You mean to look at the code from other plugins and figure out what the code does and use it?
  10. basprohop
    Offline

    basprohop Active Member Plugin Developer

    Joined:
    Aug 8, 2015
    Posts:
    128
    Plugins:
    3
    Minecraft User:
    basprohop
    Lol you don't need a start function :)
  11. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    The function was a example and plus the function was not meant for a plugin either
  12. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    And the start function was used to start using the website while it loads and if no connection since you need connection to be on Internet I would make it show error called error no connection except the browser already would I'm not good with php anyway
  13. basprohop
    Offline

    basprohop Active Member Plugin Developer

    Joined:
    Aug 8, 2015
    Posts:
    128
    Plugins:
    3
    Minecraft User:
    basprohop
    lol wtf :x
  14. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    $this->getServer
  15. basprohop
    Offline

    basprohop Active Member Plugin Developer

    Joined:
    Aug 8, 2015
    Posts:
    128
    Plugins:
    3
    Minecraft User:
    basprohop
    yah that's undefined
  16. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    You need to make it do something like to get a plugin and to use it
    $this->getLogger
  17. basprohop
    Offline

    basprohop Active Member Plugin Developer

    Joined:
    Aug 8, 2015
    Posts:
    128
    Plugins:
    3
    Minecraft User:
    basprohop
    couple posts ago we were discussing web development, you can't just quote me and switch topics and not tell me what your talking about
  18. Tester_master
    Offline

    Tester_master Active Member

    Joined:
    Dec 10, 2015
    Posts:
    95
    Minecraft User:
    Tester_master
    $this->getLogger
    Is for the plugin to show a enabled and disabled message and
    $this->getServer->getPlugin
    I know I did it wrong except getPlugin is supposed to get other plugins
  19. basprohop
    Offline

    basprohop Active Member Plugin Developer

    Joined:
    Aug 8, 2015
    Posts:
    128
    Plugins:
    3
    Minecraft User:
    basprohop
    *facepalm*
  20. Extreme_Heat
    Offline

    Extreme_Heat Active Member

    Joined:
    Apr 19, 2016
    Posts:
    76
    Minecraft User:
    Extreme_Heat
    I think you interpreted "fluent understanding of PHP" wrong. Just knowing random things here and there about PHP does not help with making proper plugins. You can cut PocketMine out of the question here as it's irrelevant.

    Take a PHP course somewhere and learn from the start. If you want to be fluent, you need to have somewhat of an abstract understanding of things like variables, PHP typing, function arguments in PHP, objects, arrays, namespaces and also lambda functions.
    Last edited: May 14, 2016

Share This Page

Advertisement