Anyone can help me to fix sw svile plugin. Linkhttps://github.com/svilex/SkyWars-PocketMine Thank You
Do you want it updated to the latest pmmp version? https://forums.pmmp.io/threads/updating-a-plugin-to-work-with-different-apis-the-manual-way.3647/ If you're not interested in learning how you can update it yourself by reading the thread above, you can create a new thread in "Requests" requesting an update for the plugin and I can do it for you. But don't forget:
I get these error(s) Code: [15:53:59] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'SW_svile v0.6dev': Argument 2 passed to pocketmine\level\format\Chunk::getTile() must be of the type integer, string given, called in phar://Desktop/update/PocketMine-MP.phar/src/pocketmine/level/Level.php on line 1916 on svile\sw\SWlistener [15:53:59] [Server thread/CRITICAL]: TypeError: "Argument 2 passed to pocketmine\level\format\Chunk::getTile() must be of the type integer, string given, called in phar://Desktop/update/PocketMine-MP.phar/src/pocketmine/level/Level.php on line 1916" (EXCEPTION) in "src/pocketmine/level/format/Chunk" at line 686 an error concerning this line PHP: Block::$list[Block::GLASS] = \svile\sw\utils\Glass::class; and this Code: 2017-09-21 [16:26:59] [Server thread/CRITICAL]: Could not execute task svile\sw\SWtimer: Undefined class constant 'WOODEN_PLANK' 2017-09-21 [16:26:59] [Server thread/CRITICAL]: Error: "Undefined class constant 'WOODEN_PLANK'" (EXCEPTION) in "SW/src/svile/sw/SWmain" at line 558
This analogy doesn't make sense. If it is a fish, eat it and it's gone. But this is a plugin. When someone makes it, it can be used by everyone. If you teach everyone to write their own plugins, you're telling everyone who wants to have the plugin to write their own one, and most likely they won't make it public.
(Off-topic) In addiiton, the quote is misattributed. See https://en.wikiquote.org/wiki/Laozi#Misattributed (see second line) Afaik, Laozi does not have any direct remaining legacy except Tao Te Ching, and his indirect remaining legacy are mainly from other people in that era, who also wouldn't quote his words. Forgive me for being off-topic, but I take Laozi as my idol and I can't stand this.
I meant this for an api update: If it's a plugin, request an update and someone does it for you (getting fed for a day with one fish). If you learn how to update the api, you'll be able to update almost every plugin yourself. Also, apologies for the misattributed quote.
But make sure you teach them to make a net so that they don't have to spend all his life fishing. What if you also teach them to fork repos and send pull requests when updating their plugins?
This is development, where people ask to learn, am I right? Would it be better if I gave him the updated version? He asked for help, not for someone to update that plugin.
Any idea how to fix these errors? Simply updating the API, command class and the 'Int' type on onRun doesn't fully fix the plugin. these errors above show when joining a game. Any help is much appreciated