/LibVapmPMMP

A library for PocketMine-PMMP about Async/Promise/Coroutine/Thread/GreenThread and other non-blocking methods. The method is based on Fibers & Generator & Processes, requires you to have php version from >= 8.1

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

LibVapmPMMP

  • This is Virion Async/Promise/Coroutine/Thread/GreenThread for PocketMine-PMMP

Composer

composer require vennv/vapm-pmmp

How to setup ?

  • Download the Phar officially here
  • Take them and put them in your Virion folder. If you do not understand what Virion is, then click here
  • To implement and use methods, you must first use this library's method at the top of the plugin's onEnable function
  • Example:
protected function onEnable() : void
{
    VapmPMMP::init($this);
}
  • What is VapmPMMP::init($this) ?
/**
* @param PluginBase $plugin
*
* This method is called by VapmPMMP::init(), it will run event loop.
*/
public static function init(PluginBase $plugin) : void;