Made sync/async tasks easier.
Added new spigot functions. They should works the same way that they would in java, but without the plugin argument.
Code (Python):
run_task
(method
)
run_async_task
(method
)
run_task_later
(method
, delay
)
run_async_task_later
(method
, delay
)
run_task_timer
(method
, delay
, period
)
run_async_task_timer
(method
, delay
, period
)
Added new bungee functions. They should works the same way that they would in java, but without the plugin argument.
Code (Python):
run_async
(task
)
schedule
(task
, delay
, period
=
0
, unit
=TimeUnit.
MILLISECONDS
)
New variable: plugin
py-settings.yml changes:
https://github.com/True-cc/SPYgotUt...d0c8157ff530bf566abf4f30b065861490e482953b030