Hello, this is a simple plugin api that helps you create and manage plugins easily. This task API uses more tasks from the pocketmine API to manage the tasks. This is good for: minigames, delayed massages, tips, etc. This is more for beginners that don't know how to create tasks, or for lazy developers. The documentation: https://github.com/xBeastMode/TaskAPI/wiki/Documentation Task API: https://github.com/xBeastMode/TaskAPI Download: https://github.com/xBeastMode/TaskAPI/releases/download/1.0/TaskAPI_v1.phar Releases: https://github.com/xBeastMode/TaskAPI/releases/
All that you are doing can be simply changed to creating a CallbackPluginTask. I don't think this is helpful in any ways.
Why don't you just make a CallbackPluginTask? You are writing a lot of useless code that eventually just run one line of code.
What? There had never been a CallbackPluginTask. There is just a CallbackTask, and it has never been intended for anything other than internal use. What's wrong with the allback running more than one line? Callbacks always accept callable values, i.e. "function_name", [$object, "method_name"], or function(){ closure_code; }. It is never limited to one line of code.
So is a CallbackPluginTask a task you have to create on your own? I don't see one in the pocket mine scheduler.
I don't see the point of this "library" except the purpose of stopping people from learning basic class hierarchy concept through writing so many lines of code to replace two lines of code.