Fixed language issues in configuration

In some languages like Turkish toLowerCase() method changing 'I' to 'ı' not 'i'
so this causing an error, yes this also can be fixed by changing server language.
This commit is contained in:
Mordisk 2021-05-16 13:46:03 +03:00 committed by GitHub
parent daa4e8dcc2
commit 96859caa53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import org.bukkit.configuration.file.YamlConfiguration;
import java.io.File;
import java.util.List;
import java.util.Locale;
public class ConfigurationManager extends Manager {
@ -147,7 +148,7 @@ public class ConfigurationManager extends Manager {
* @return The key for a FileConfiguration
*/
private String getNameAsKey() {
return this.name().replace("_", "-").toLowerCase();
return this.name().replace("_", "-").toLowerCase(Locale.ENGLISH);
}
}