@@ -72,10 +72,12 @@ foliaLib.getImpl().runAsync(() -> {/* Code */});
7272
7373// On a Folia server, this method will run using the GlobalRegionScheduler
7474// On a Spigot server, this method will run on the main thread
75- foliaLib. getImpl(). runTimer(() - > {/* Code */ }, 0L , 20 * 50L , TimeUnit . MILLISECONDS );
75+ foliaLib. getImpl(). runTimer(() - > {/* Code */ }, 1 , 20 ); // Using ticks
76+ foliaLib. getImpl(). runTimer(() - > {/* Code */ }, 1 , 20 * 50L , TimeUnit . MILLISECONDS ); // Using TimeUnit
7677
7778// In both cases, this method will run asynchronously
78- foliaLib. getImpl(). runTimerAsync(() - > {/* Code */ }, 0L , 20 * 50L , TimeUnit . MILLISECONDS );
79+ foliaLib. getImpl(). runTimerAsync(() - > {/* Code */ }, 0 , 20 ); // Using ticks
80+ foliaLib. getImpl(). runTimerAsync(() - > {/* Code */ }, 0L , 20 * 50L , TimeUnit . MILLISECONDS ); // Using TimeUnit
7981
8082// On a folia server, this will run the code using the RegionScheduler that is appropriate for the location
8183// On a spigot server, this will run the code on the main thread
@@ -84,6 +86,8 @@ foliaLib.getImpl().runAtLocation(location, () -> {/* Code */});
8486// On a folia server, this will run the code using the EntityScheduler that is appropriate for the entity
8587// On a spigot server, this will just run the code on the main thread
8688foliaLib. getImpl(). runAtEntity(entity, () - > {/* Code */ });
89+
90+ // AND MANY MORE OPTIONS...!
8791```
8892
8993## License
0 commit comments