📜  spigot 稍后运行任务 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:27.705000             🧑  作者: Mango

代码示例2
// 20L = 1 Second
Bukkit.getScheduler().runTaskLater(main, new Runnable() {
    public void run() {
        System.out.println("Plugin has been enabled for 5 seconds!");
    }
}, 100L);