mirror of
https://github.com/MiniDay/HamsterCurrency-Parent.git
synced 2025-08-22 20:25:30 +08:00
Merge remote-tracking branch 'github_https/master'
This commit is contained in:
@@ -59,7 +59,7 @@ publishing {
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = 'https://maven.airgame.net/maven-airgame/'
|
||||
url = 'https://maven.airgame.net/public/'
|
||||
|
||||
credentials {
|
||||
username maven_username
|
||||
|
@@ -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());
|
||||
|
Reference in New Issue
Block a user