Answers for "spigot run task later"

0

bukkit delayed task

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
Posted by: Guest on October-26-2020
2

spigot run task later

// 20L = 1 Second
Bukkit.getScheduler().runTaskLater(main, new Runnable() {
	public void run() {
		System.out.println("Plugin has been enabled for 5 seconds!");
	}
}, 100L);
Posted by: Guest on May-14-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language