DiscordSRV

DiscordSRV

86.8k Downloads

Default config causes issues on a Turkish machine

okunamayanad-zz opened this issue · 1 comments

commented

Expected behavior

It would work fine with the default values.

Heres the values that causes problems:
DiscordConsoleChannelLevels: [info, warn, error]
209 in config.yml

Actual behavior

It gives out an error
image

Steps to reproduce

Run the plugin in a devive that has the language selected

Server software and version

git-Paper-794 (MC: 1.16.5)

Checks

  • I am not using an outdated version of DiscordSRV.
  • I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.

Anything else

In Turkish capital i is İ so when plugin tries to convert this i value to its capital version it gets the İ value so info in capital letters turns into İNFO

I tried to fix it by changing the letter i with ı
Because of capital ı is I in Turkish and it fixed the problem!

commented

Solution to this is using variable.toUpperCase(new java.util.Locale("en")) instead of variable.toUpperCase()