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

Need help with making first plugin...

Comments in 'Plugin Development' started by joshuac666, Apr 18, 2015.

  1. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    My names Joshua, and I want to make my first plugin. I know very little php and all I learnt is from a tutorial on minecraft forums (http://www.minecraftforum.net/forum...56-how-to-make-a-pocketmine-plugin-simplified). But it doesn't exactly say how to make a plugin... I have no idea how I can make my plugin, there are no tutorials out there on how I can make a plugin... Anyway, the plugin I have in mind is a SkyWars plugin where I tap on a sign, and I teleport in a glass cage. and when other players tap on that sign, they teleport into a seperate glass cage... And once 3 players are in the SkyWars map, the server outputs "SkyWars starting in 30 seconds..." During these 30 seconds more people may join the game. After the 30 seconds, the glass cage breaks and the players fall onto there islands... And once someone wins, the map resets, with all items in the chest, all blocks reset, and the glass cages back... I could really use some help... Thanks
    LDX likes this.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    That one is outdated. Visit the Resources subforum in the Plugin Development forum.
    joshuac666 and LDX like this.
  3. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    Okay, thanks!
  4. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    I recommend to start with small plugins. Starting with a SkyWars plugin is not the right thing to do.
    You should learn how PHP and how PocketMine work and then start with a simple plugin.
    When you understand enough about these two things, you can start with any plugin you want.
    I recommend you also to write plugins using a good IDE. Using Notepad++ is not a good idea xD
    joshuac666 likes this.
  5. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    I write my plugins using Emacs. That's an editor from the 70s!
    joshuac666 likes this.
  6. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    It is recommended that you start with smaller/simpler plugins over complex plugins. You have to learn PHP first, not the API. What's the point of learning the API if you can't learn PHP during the process?
    joshuac666 likes this.
  7. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    So you should know MSDOS :)
    joshuac666 likes this.
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I started with a CTF plugin xD and then JavaScript parser :p of course none of them work, but if you don't expect them to work, starting with anything can give you a good experience.
    EvolSoft likes this.
  9. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    With PHP I started with http://webtools.evolsoft.tk coded in a simply way.
    With PocketMine I started with MSpawns. It was my first plugin. Initially it was coded very badly :p but then I started using functions and I cleaned up code.
  10. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    About the last thing you said, I forgot to say in my article, that I don't have a computer, I do everything on my phone... So I can't use an IDE, unless there is some type on android other than AIDE... And I can only use ports and stuff of Notepad++... :p sorry...
  11. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Ah.
    On Phone you can use AWD IDE that's made for PHP
    joshuac666 likes this.
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Basically most code editors on phone are terrible. It is the limitation for phone processor and screen size that make good IDEs impossible.
    joshuac666 and EvolSoft like this.
  13. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    Thanks everyone for helping! The last thing I need is a good tutorial for php, any recommendations?
  14. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Yes, you are right. I never use my phone to program due to small screen size and long debugs
    joshuac666 likes this.
  15. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    I just asked for a good *TUTORIAL* for php, not a code editor... I tried it and I prefer AWD, and Quoda, they have much more functions and are faster, prettier, and more usefull
    PEMapModder likes this.
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    joshuac666 likes this.
  17. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    Okay... I'm sorry :|
  18. joshuac666
    Offline

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

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

    joshuac666 New Member

    Joined:
    Apr 15, 2015
    Posts:
    18
    Minecraft User:
    joshuac68
    PEMapModder, could you please help me with making a super simple plugin? All it is is a plugin where you type /bwand ,and then you get a stick, and if you tap the ground with the stick, dirt is created where you tap.. Could you please help? If not then could you help me with this, I don't know how to program input of a command and then the command happening... I've been looking through plugins php files by using devtools all day, experimenting and stuff, and I can't make a simple plugin where if you type /hello it outputs "hello world" in the chat..... Can you please help?

Share This Page

Advertisement