Merge remote-tracking branch 'github_https/master'

This commit is contained in:
2024-04-05 11:30:46 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ publishing {
repositories {
maven {
url = 'https://maven.airgame.net/maven-airgame/'
url = 'https://maven.airgame.net/public/'
credentials {
username maven_username

View File

@@ -54,7 +54,7 @@ public class SQLDataManager implements IDataManager {
"action VARCHAR(36) NOT NULL," +
"amount DOUBLE NOT NULL," +
"balance DOUBLE NOT NULL," +
"time DATETIME NOT NULL DEFAULT NOW()," +
"time DATETIME NOT NULL," +
"INDEX idx_uuid(uuid)," +
"INDEX idx_name(player_name)" +
") CHARACTER SET = utf8mb4;");
@@ -295,7 +295,7 @@ public class SQLDataManager implements IDataManager {
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
try (Connection connection = datasource.getConnection()) {
try (PreparedStatement statement = connection.prepareStatement(
"INSERT INTO " + database + ".hamster_currency_logs VALUES(?, ?, ?, ?, ?, ?, DEFAULT);"
"INSERT INTO " + database + ".hamster_currency_logs VALUES(?, ?, ?, ?, ?, ?, NOW());"
)) {
statement.setString(1, log.getUuid().toString());
statement.setString(2, log.getPlayerName());