Say I want to send a custom event MyEvent to plugins. Kind of like OnPlayerJoin or anything like that. How would I do that?
Create new class with name of the event PHP: <?phpuse pocketmine\event\plugin\PluginEvent;use pocketmine\Player;class EVENT extends PluginEvent implements Listener{public static $handlerList = null;public function __construct(YourMain $plugin, Player $player, Arena $arena) {parent::__construct($plugin);}public function eventFunctions(){//blablabla}}
Do PHP: use FolderWhereIsEvent\eventclassname; and then PHP: public function onMyCustomEvent(YourEventFileName $e){