Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

bukkit scheduler delay 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
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #bukkit #scheduler #delay #task
ADD COMMENT
Topic
Name
9+7 =