9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-27 10:49:18 +00:00
This commit is contained in:
Xiao-MoMi
2022-07-12 15:13:25 +08:00
parent d2432b4a0f
commit 5c19a04b1a
10 changed files with 16 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ public class DataManager {
}
PlayerData playerData = SqlHandler.getPlayerData(uuid);
if (playerData == null) {
playerData = PlayerData.EMPTY;
playerData = new PlayerData(ConfigManager.MainConfig.default_nameplate, 0);
}
cache.put(uuid, playerData);
return playerData;
@@ -40,9 +40,9 @@ public class DataManager {
public static boolean create() {
if(ConfigManager.DatabaseConfig.use_mysql){
AdventureManager.consoleMessage("<gradient:#DDE4FF:#8DA2EE>[CustomNameplates]</gradient> <color:#00CED1>Storage Mode - MYSQL");
AdventureManager.consoleMessage("<gradient:#2E8B57:#48D1CC>[CustomNameplates]</gradient> <color:#22e281>存储模式 - MYSQL");
}else {
AdventureManager.consoleMessage("<gradient:#DDE4FF:#8DA2EE>[CustomNameplates]</gradient> <color:#00CED1>Storage Mode - SQLite");
AdventureManager.consoleMessage("<gradient:#2E8B57:#48D1CC>[CustomNameplates]</gradient> <color:#22e281>存储模式 - SQLite");
}
if (SqlHandler.connect()) {
if (ConfigManager.DatabaseConfig.use_mysql) {