So you want to get a phone, but you don't want to pay for the phone, so you go buy the hardware components of the phone and then going everywhere asking people how you can assemble them together. Why do you ask for code when you just want a plugin and know nothing about the code? This is wrong. Knowing PHP and the PocketMine API does not mean you acquire the skill to develop a minigame plugin, and you don't need to know everything of PHP and PocketMine API to develop a minigame plugin. You are simply trying to scare people away without providing any actual help.