BUILDTOOLS-251: Make much of Bukkit locale independent
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -48,7 +48,7 @@ public enum PermissionDefault {
|
||||
* @return Specified value, or null if not found
|
||||
*/
|
||||
public static PermissionDefault getByName(String name) {
|
||||
return lookup.get(name.toLowerCase().replaceAll("[^a-z!]", ""));
|
||||
return lookup.get(name.toLowerCase(java.util.Locale.ENGLISH).replaceAll("[^a-z!]", ""));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user