Skip to content

Commit 7aa0f59

Browse files
committed
Remove invalid character encoding and clean up debug messages
1 parent fc60988 commit 7aa0f59

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

AdvancedCore/src/main/java/com/bencodez/advancedcore/api/misc/scoreboards/SimpleScoreboard.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.util.Map;
99

1010
import org.bukkit.Bukkit;
11+
import org.bukkit.ChatColor;
1112
import org.bukkit.OfflinePlayer;
1213
import org.bukkit.entity.Player;
1314
import org.bukkit.scoreboard.DisplaySlot;
@@ -142,7 +143,7 @@ private Map.Entry<Team, String> createTeam(String text) {
142143
*/
143144
private String fixDuplicates(String text) {
144145
while (scores.containsKey(text)) {
145-
text += r";
146+
text += ChatColor.COLOR_CHAR + "r";
146147
}
147148
if (text.length() > 48) {
148149
text = text.substring(0, 47);

AdvancedCore/src/main/java/com/bencodez/advancedcore/api/user/userstorage/mysql/MySQL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void alterColumnType(final String column, final String newType) {
158158
}
159159
} catch (SQLException e) {
160160
// If inspection fails, log and fall back to doing the ALTER anyway
161-
plugin.debug("MYSQL: Failed to inspect column " + getName() + "." + column + " running ALTER anyway");
161+
plugin.debug("MYSQL: Failed to inspect column " + getName() + "." + column + " running ALTER anyway");
162162
plugin.debug(e);
163163
}
164164

AdvancedCore/src/main/java/com/bencodez/advancedcore/bungeeapi/globaldata/GlobalMySQL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public void alterColumnType(final String column, final String newType) {
237237
}
238238
} catch (SQLException e) {
239239
// If inspection fails, log and fall back to doing the ALTER anyway
240-
debugLog("GlobalMySQL: Failed to inspect column " + getName() + "." + column + " running ALTER anyway");
240+
debugLog("GlobalMySQL: Failed to inspect column " + getName() + "." + column + " running ALTER anyway");
241241
debugEx(e);
242242
}
243243

AdvancedCore/src/test/java/com/bencodez/advancedcore/tests/TimeCheckerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void tearDown() {
5858

5959
@Test
6060
public void testDayWeekMonthChanges() {
61-
// initial previous values
61+
// initial previous values
6262
when(serverDataFile.getPrevDay()).thenReturn(31);
6363
when(serverDataFile.getPrevWeekDay()).thenReturn(52);
6464
when(serverDataFile.getPrevMonth()).thenReturn("DECEMBER");
@@ -109,7 +109,7 @@ public void testDayWeekMonthChanges() {
109109
verify(serverDataFile).setPrevMonth(mockedTime.getMonth().toString());
110110
}
111111

112-
// prepare for next iteration: update previous getters
112+
// prepare for next iteration: update previous getters
113113
when(serverDataFile.getPrevDay()).thenReturn(day);
114114
when(serverDataFile.getPrevWeekDay()).thenReturn(weekOfYear);
115115
when(serverDataFile.getPrevMonth()).thenReturn(mockedTime.getMonth().toString());

0 commit comments

Comments
 (0)