diff --git a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Bukkit/Database/Config.java b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Bukkit/Database/Config.java index 58ac3086..cf57d688 100644 --- a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Bukkit/Database/Config.java +++ b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Bukkit/Database/Config.java @@ -655,7 +655,7 @@ public String getUpdateChannel() { return channel; } - else getLogger().log(Level.INFO, "Unknown update Channel: {}", channel); + else getLogger().log(Level.INFO, "Unknown update Channel: {0}", channel); return null; } diff --git a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/MySQL.java b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/MySQL.java index ce6f9351..bc0318c4 100644 --- a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/MySQL.java +++ b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/MySQL.java @@ -157,8 +157,8 @@ private void checkPriestsTable(final @NotNull Connection connection) throws SQLE String primKey = rs.getString("Column_name"); if(!primKey.equalsIgnoreCase(fieldPriestID)) { - logger.log(Level.WARNING, "PriestId field name currently used ({}}) in the database does not math the configured one in the config ({}})!\n" + - "If you would like to change the name of the field please change both the name in the database and the config.\nChanging config to: {}", + logger.log(Level.WARNING, "PriestId field name currently used ({0}) in the database does not math the configured one in the config ({1})!\n" + + "If you would like to change the name of the field please change both the name in the database and the config.\nChanging config to: {2}", new Object[]{ primKey, fieldPriestID, primKey }); dbConfig.getConfigE().set("Database.SQL.Tables.Fields.PriestID", primKey); try diff --git a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/SQL.java b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/SQL.java index 5abb3e4a..ec97d611 100644 --- a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/SQL.java +++ b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/Backend/SQL.java @@ -314,7 +314,7 @@ public void loadAll() } else { - logger.log(Level.WARNING, "Player {} for marriage {} has not been loaded. Skipping", new Object[]{ (player1 == null ? 1 : 2), sm.marryID }); + logger.log(Level.WARNING, "Player {0} for marriage {1} has not been loaded. Skipping", new Object[]{ (player1 == null ? 1 : 2), sm.marryID }); } } logger.info("Marriages loaded into cache"); @@ -341,7 +341,7 @@ public void loadMarriage(final int marriageId) MARRIAGE_PLAYER priest = (rs.getObject(fieldPriest) == null) ? null : playerFromId(connection, rs.getInt(fieldPriest)); if(player1 == null || player2 == null) { - logger.log(Level.WARNING, "Failed to load marriage (id: {}) because one of its players could not be loaded successful!", marriageId); + logger.log(Level.WARNING, "Failed to load marriage (id: {0}) because one of its players could not be loaded successful!", marriageId); return; } String surname = surnameEnabled ? rs.getString(fieldSurname) : null; @@ -636,7 +636,7 @@ public void migratePlayer(final @NotNull MigrationPlayer player) } else { - logger.log(Level.INFO, "No auto ID for player \"{}\", try to load id from database ...", player.name); + logger.log(Level.INFO, "No auto ID for player \"{0}\", try to load id from database ...", player.name); try(PreparedStatement ps2 = connection.prepareStatement(queryLoadPlayer)) { ps2.setString(1, player.uuid); @@ -648,7 +648,7 @@ public void migratePlayer(final @NotNull MigrationPlayer player) } else { - logger.log(Level.WARNING, ConsoleColor.RED + "No ID for player \"{}\", there is something wrong with this player! You should check that!" + ConsoleColor.RESET, player.name); + logger.log(Level.WARNING, ConsoleColor.RED + "No ID for player \"{0}\", there is something wrong with this player! You should check that!" + ConsoleColor.RESET, player.name); return; } } @@ -698,7 +698,7 @@ public void migrateMarriage(final @NotNull MigrationMarriage marriage) } else { - logger.log(Level.WARNING, "No ID for marriage \"{} <-> {}\"!", new Object[]{marriage.player1.name, marriage.player2.name}); + logger.log(Level.WARNING, "No ID for marriage \"{0} <-> {1}\"!", new Object[]{marriage.player1.name, marriage.player2.name}); } } } diff --git a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/BaseDatabase.java b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/BaseDatabase.java index 16df467f..2ef4630a 100644 --- a/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/BaseDatabase.java +++ b/MarriageMaster/src/at/pcgamingfreaks/MarriageMaster/Database/BaseDatabase.java @@ -47,7 +47,7 @@ public abstract class BaseDatabase