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
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
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?
I started with a CTF plugin xD and then JavaScript parser of course none of them work, but if you don't expect them to work, starting with anything can give you a good experience.
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 but then I started using functions and I cleaned up code.
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++... sorry...
Basically most code editors on phone are terrible. It is the limitation for phone processor and screen size that make good IDEs impossible.
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
I will write a new one when I have time. But here are some good beginner's examples and some basic tutorials https://github.com/PEMapModder/PocketMine-Plugin-Tutorials
Is perhaps the tutorial you sent me, on this page: https://github.com/PEMapModder/PocketMine-Plugin-Tutorials/wiki/Registering and executing commands outdated? Its from 2014 and I'm a complete noob and I don't know when the new API came to be...
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?