mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-06 04:46:40 +00:00
Insert Locale.ROOT into all case change methods
This commit is contained in:
committed by
Kenzie Togami
parent
b47c70025e
commit
13a8c480e3
@ -30,6 +30,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@ -254,7 +255,7 @@ public abstract class CommandsManager<T> {
|
||||
* @return true if the command exists
|
||||
*/
|
||||
public boolean hasCommand(String command) {
|
||||
return commands.get(null).containsKey(command.toLowerCase());
|
||||
return commands.get(null).containsKey(command.toLowerCase(Locale.ROOT));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -434,7 +435,7 @@ public abstract class CommandsManager<T> {
|
||||
String cmdName = args[level];
|
||||
|
||||
Map<String, Method> map = commands.get(parent);
|
||||
Method method = map.get(cmdName.toLowerCase());
|
||||
Method method = map.get(cmdName.toLowerCase(Locale.ROOT));
|
||||
|
||||
if (method == null) {
|
||||
if (parent == null) { // Root
|
||||
|
Reference in New Issue
Block a user