Prevent too many tasks keep in the queue

Former-commit-id: 62c60f0efab6c6ad1d8cc5027686a84b491ca09f
This commit is contained in:
Ghost_chu committed 2020-03-18 12:43:24 +08:00
1 parent 0e72233d36
commit b7de8a2b9b
1 file changed
+1 -1
@@ -74,7 +74,7 @@ public class DatabaseManager {
public void run() {
plugin.getDatabaseManager().runTask();
}
}.runTaskTimerAsynchronously(plugin, 1, 200);
}.runTaskTimerAsynchronously(plugin, 1, 10);
} catch (IllegalPluginAccessException e) {
Util.debugLog("Plugin is disabled but trying create database task, move to Main Thread...");
plugin.getDatabaseManager().runTask();