This commit is contained in:
Rsl1122 2017-01-30 21:35:38 +02:00
parent c5d85d9ba5
commit baabac9d4c
3 changed files with 12 additions and 10 deletions

View File

@ -89,17 +89,18 @@ public class DataCacheHandler {
if (timesSaved % clearAfterXsaves == 0) {
handler.clearCache();
}
serverData.updatePlayerCount();
saveServerData();
handler.clearNulls();
timesSaved++;
}
}).runTaskTimerAsynchronously(plugin, 60 * 20 * minutes, 60 * 20 * minutes);
(new BukkitRunnable() {
@Override
public void run() {
serverData.updatePlayerCount();
saveServerData();
}
}).runTaskTimerAsynchronously(plugin, 60 * 20 * sMinutes, 60 * 20 * sMinutes);
// (new BukkitRunnable() {
// @Override
// public void run() {
//
// }
// }).runTaskTimerAsynchronously(plugin, 60 * 20 * sMinutes, 60 * 20 * sMinutes);
}
/**

View File

@ -409,6 +409,7 @@ public abstract class SQLDB extends Database {
}
}
@Override
public void saveCommandUse(HashMap<String, Integer> data) {
try {
PreparedStatement statement = connection.prepareStatement(

View File

@ -1,7 +1,7 @@
name: Plan
author: Rsl1122
main: com.djrapitops.plan.Plan
version: 2.3.0
version: 2.3.1
commands:
plan: