- English
- 中文
- A plugin for delay execute command until all player have left
- You can use it as a API
import delayexe
def a_method():
delayexe.add_delay_task('say There are no player online') # run minecraft command
delayexe.add_delay_task('kill @a') # Must nothing to kill
delayexe.add_delay_task(lambda: print('There are no player online')) # run python method
# ...
delayexe.clear_delay_task() # clear all delay tasks, the top of three commands will never run, if any player is online
# ...
a_method()
# ...