mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
f
This commit is contained in:
parent
4a594a8e4f
commit
b6d9eb3dcc
@ -67,6 +67,7 @@ import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.plugin.IllegalPluginAccessException;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
@ -298,6 +299,8 @@ public class Iris extends VolmitPlugin implements Listener {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public static void later(NastyRunnable object) {
|
||||
try
|
||||
{
|
||||
Bukkit.getScheduler().scheduleAsyncDelayedTask(instance, () ->
|
||||
{
|
||||
try {
|
||||
@ -309,6 +312,12 @@ public class Iris extends VolmitPlugin implements Listener {
|
||||
}, RNG.r.i(100, 1200));
|
||||
}
|
||||
|
||||
catch(IllegalPluginAccessException ignored)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static int jobCount() {
|
||||
return syncJobs.size();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user