Here is a little plugin I wrote[lol]. PHP: <?phpnamespace Spoon\Feeding=D;use pocketmine\plugin\PluginBase;use pocketmine\event\Listener;class Main extends PluginBase implements Listener { public function onEnable() { $this->getServer()->getPluginManager()->registerEvents($this,$this); } public function onQuit(PlayerQuitEvent $event) { $event->getPlayer()->removeAllEffects(); }}
No! this is a script PHP: <?php/** * @name LogoutEffectRemoval * @api 3.0.0 * @version 1.0.0 * @author Primus * @main Primus\Main */namespace Primus { class Main extends \pocketmine\plugin\PluginBase implements \pocketmine\event\Listener { public function onEnable() { $this->getServer()->getPluginManager()->registerEvents($this, $this); } public function onPlayerQuit(\pocketmine\event\player\PlayerQuitEvent $event) { $event->getPlayer()->removeAllEffects(); } }} Save this to any name.php file In your plugins folder and it should load as proper plugin. Reference to this format: https://forums.pocketmine.net/threads/new-plugin-scripting-format-draft.8335/
I can't upload PHP files here, also what exactly didn't work? Are you refusing to do what I suggested, or is there some kind of other technical difficulties? Let's for second switch roles and pretend like you're helping me, what would you even answer to someone who said that things just "don't work"? There is like million possibilities of what could go wrong, you didn't even try to narrow it down. Dude, let me go to your house and fix it for ya, will that work for you? it sounds like, you just want others to do stuff for you!
So, when I have finished it and then put it in the plugin folder, there is nothing in the console. I do not understand it
You have copy and pasted the contents into .PHP file that is located in your plugins folder. Once server starts it does not show up in plugins list, that you can see by executing /plugins ?