Skip to content

Commit

Permalink
Fixed weird behaviors of the plugin when having Turkish as the system…
Browse files Browse the repository at this point in the history
…'s language
  • Loading branch information
OmerBenGera committed Feb 4, 2022
1 parent 991f57b commit d69cb21
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
import javax.annotation.Nullable;
import java.io.File;
import java.lang.reflect.Constructor;
import java.util.Locale;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -163,6 +164,11 @@ public static SuperiorSkyblockPlugin getPlugin() {
@Override
public void onLoad() {
plugin = this;

// Setting the default locale to English will fix issues related to using upper case in Turkish.
// https://stackoverflow.com/questions/11063102/using-locales-with-javas-tolowercase-and-touppercase
Locale.setDefault(Locale.ENGLISH);

new Metrics(this);

initCustomFilter();
Expand Down

0 comments on commit d69cb21

Please sign in to comment.