diff --git a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java index 5736ce3..9563f3c 100644 --- a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java +++ b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/EnvCommand.java @@ -51,7 +51,7 @@ public class EnvCommand extends ChildCommand { String lowerCase = args[0].toLowerCase(); return System.getenv().keySet() .stream() - .filter(o -> o.startsWith(lowerCase)) + .filter(o -> o.toLowerCase().startsWith(lowerCase)) .collect(Collectors.toList()); } return Collections.emptyList(); diff --git a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java index 6d6b415..63fbb8e 100644 --- a/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java +++ b/hamster-core-bukkit/src/main/java/cn/hamster3/mc/plugin/core/bukkit/command/core/sub/SystemCommand.java @@ -52,7 +52,7 @@ public class SystemCommand extends ChildCommand { return System.getProperties().keySet() .stream() .map(Object::toString) - .filter(o -> o.startsWith(lowerCase)) + .filter(o -> o.toLowerCase().startsWith(lowerCase)) .collect(Collectors.toList()); } return Collections.emptyList();