mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 03:57:33 +01:00
Merge branch '3.7.0' of https://github.com/Rsl1122/Plan-PlayerAnalytics
This commit is contained in:
commit
2a7f23d516
@ -1,7 +1,7 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.djrapitops:abstract-plugin-framework:2.0.3">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../Abstract-Plugin-Framework/AbstractPluginFramework/target/AbstractPluginFramework.jar!/" />
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/abstract-plugin-framework/2.0.3/abstract-plugin-framework-2.0.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/abstract-plugin-framework/2.0.3/abstract-plugin-framework-2.0.3-javadoc.jar!/" />
|
||||
|
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.djrapitops</groupId>
|
||||
<artifactId>Plan</artifactId>
|
||||
<version>3.6.2</version>
|
||||
<version>3.6.3</version>
|
||||
<packaging>jar</packaging>
|
||||
<repositories>
|
||||
<repository>
|
||||
|
@ -259,6 +259,7 @@ public class Plan extends BukkitPlugin<Plan> {
|
||||
scheduler.shutdown(); // Schedules the save to shutdown after it has ran the execute method.
|
||||
}
|
||||
|
||||
getPluginLogger().endAllDebugs();
|
||||
Log.info(Locale.get(Msg.DISABLED).toString());
|
||||
Locale.unload();
|
||||
}
|
||||
|
@ -312,7 +312,6 @@ public class DataCacheHandler extends SessionCache {
|
||||
* @param uuid Player's UUID
|
||||
*/
|
||||
public void saveCachedData(UUID uuid) {
|
||||
Log.debug(uuid + ": SaveCachedData");
|
||||
DBCallableProcessor saveProcessor = data -> {
|
||||
data.access();
|
||||
data.setClearAfterSave(true);
|
||||
|
@ -88,7 +88,6 @@ class ProcessConsumer extends Consumer<HandlingInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
Log.debug(info.getUuid() + ": Processing type: " + info.getType().name());
|
||||
DBCallableProcessor p = data -> {
|
||||
if (!info.process(data)) {
|
||||
Log.error("Attempted to process data for wrong uuid: W:" + data.getUuid() + " | R:" + info.getUuid() + " Type:" + info.getType().name());
|
||||
|
@ -538,6 +538,7 @@ public abstract class SQLDB extends Database {
|
||||
return;
|
||||
}
|
||||
Log.debug("Database", "Save userdata: " + uuid);
|
||||
Benchmark.start("Save Single UserData");
|
||||
checkConnection();
|
||||
data.access();
|
||||
usersTable.saveUserDataInformation(data);
|
||||
@ -551,6 +552,7 @@ public abstract class SQLDB extends Database {
|
||||
worldTimesTable.saveWorldTimes(userId, data.getWorldTimes().getTimes());
|
||||
data.stopAccessing();
|
||||
commit();
|
||||
Benchmark.stop("Database", "Save Single UserData");
|
||||
setAvailable();
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ public class SessionsTable extends Table {
|
||||
return;
|
||||
}
|
||||
|
||||
Benchmark.start("Save Sessions");
|
||||
|
||||
PreparedStatement statement = null;
|
||||
try {
|
||||
statement = prepareStatement("INSERT INTO " + tableName + " ("
|
||||
@ -120,7 +120,6 @@ public class SessionsTable extends Table {
|
||||
+ columnSessionStart + ", "
|
||||
+ columnSessionEnd
|
||||
+ ") VALUES (?, ?, ?)");
|
||||
|
||||
for (SessionData session : sessions) {
|
||||
long end = session.getSessionEnd();
|
||||
long start = session.getSessionStart();
|
||||
@ -137,7 +136,6 @@ public class SessionsTable extends Table {
|
||||
statement.executeBatch();
|
||||
} finally {
|
||||
close(statement);
|
||||
Benchmark.stop("Database", "Save Sessions");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: Plan
|
||||
author: Rsl1122
|
||||
main: main.java.com.djrapitops.plan.Plan
|
||||
version: 3.6.2
|
||||
version: 3.6.3
|
||||
softdepend:
|
||||
- OnTime
|
||||
- EssentialsX
|
||||
|
Loading…
Reference in New Issue
Block a user