📜  bukkit 调度程序延迟任务 - Java 代码示例

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

代码示例1
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
    @Override
    public void run() {
        Bukkit.broadcastMessage("This message is shown after one second");
    }
}, 20L); //20 Tick (1 Second) delay before run() is called