moved encoding fix to chat defenition

This commit is contained in:
Tyler Murphy 2021-08-25 00:02:24 -04:00
parent b37c0fe799
commit 5306f09eb0
2 changed files with 9 additions and 7 deletions

View file

@ -12,7 +12,6 @@
<configuration> <configuration>
<source>1.8</source> <source>1.8</source>
<target>1.8</target> <target>1.8</target>
<encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View file

@ -89,12 +89,15 @@ public class Store {
blockedCommands = getConfig().getStringList("blockedCommands"); blockedCommands = getConfig().getStringList("blockedCommands");
messagePrefix = getConfig().getString("prefix.default").replace("&", "§"); char SYMBOLE = '\u00A7';
errorPrefix = getConfig().getString("prefix.error").replace("&", "§"); String SYMBOLE_STRING = new String(new char[] {SYMBOLE});
tauntPrefix = getConfig().getString("prefix.taunt").replace("&", "§");
worldborderPrefix = getConfig().getString("prefix.border").replace("&", "§"); messagePrefix = getConfig().getString("prefix.default").replace("&", SYMBOLE_STRING);
abortPrefix = getConfig().getString("prefix.abort").replace("&", "§"); errorPrefix = getConfig().getString("prefix.error").replace("&", SYMBOLE_STRING);
gameoverPrefix = getConfig().getString("prefix.gameover").replace("&", "§"); tauntPrefix = getConfig().getString("prefix.taunt").replace("&", SYMBOLE_STRING);
worldborderPrefix = getConfig().getString("prefix.border").replace("&", SYMBOLE_STRING);
abortPrefix = getConfig().getString("prefix.abort").replace("&", SYMBOLE_STRING);
gameoverPrefix = getConfig().getString("prefix.gameover").replace("&", SYMBOLE_STRING);
nametagsVisible = getConfig().getBoolean("nametagsVisible"); nametagsVisible = getConfig().getBoolean("nametagsVisible");