feat(hamster-core-bukkit): 添加指令

This commit is contained in:
2023-05-31 08:42:23 +08:00
parent 5181dd3058
commit 60c40f017d
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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();