diff --git a/AutoPluginUpdate.jar b/AutoPluginUpdate.jar index efe15c4..f58d08c 100644 Binary files a/AutoPluginUpdate.jar and b/AutoPluginUpdate.jar differ diff --git a/src/sig/plugin/AutoPluginUpdate/AutoPluginUpdate.java b/src/sig/plugin/AutoPluginUpdate/AutoPluginUpdate.java index 7e25f56..96b716e 100644 --- a/src/sig/plugin/AutoPluginUpdate/AutoPluginUpdate.java +++ b/src/sig/plugin/AutoPluginUpdate/AutoPluginUpdate.java @@ -109,7 +109,7 @@ public class AutoPluginUpdate extends JavaPlugin implements Listener{ for (int i=0;i{Bukkit.shutdown();}, 40); + Bukkit.getScheduler().runTaskLater(Bukkit.getPluginManager().getPlugin("AutoPluginUpdate"), ()->{Bukkit.shutdown();}, 60); } } } @@ -140,7 +140,7 @@ public class AutoPluginUpdate extends JavaPlugin implements Listener{ for (int i=0;i{Bukkit.shutdown();}, 40); + Bukkit.getScheduler().runTaskLater(Bukkit.getPluginManager().getPlugin("AutoPluginUpdate"), ()->{Bukkit.shutdown();}, 60); } },20*180*((Bukkit.getOnlinePlayers().size()==0)?0:1)+1);