mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-22 08:02:13 +01:00
Fix for #4
This commit is contained in:
parent
c5d85d9ba5
commit
baabac9d4c
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -409,6 +409,7 @@ public abstract class SQLDB extends Database {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveCommandUse(HashMap<String, Integer> data) {
|
||||
try {
|
||||
PreparedStatement statement = connection.prepareStatement(
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: Plan
|
||||
author: Rsl1122
|
||||
main: com.djrapitops.plan.Plan
|
||||
version: 2.3.0
|
||||
version: 2.3.1
|
||||
|
||||
commands:
|
||||
plan:
|
||||
|
Loading…
Reference in New Issue
Block a user