feat(hamster-core-bukkit): 添加指令
This commit is contained in:
@@ -51,7 +51,7 @@ public class EnvCommand extends ChildCommand {
|
|||||||
String lowerCase = args[0].toLowerCase();
|
String lowerCase = args[0].toLowerCase();
|
||||||
return System.getenv().keySet()
|
return System.getenv().keySet()
|
||||||
.stream()
|
.stream()
|
||||||
.filter(o -> o.startsWith(lowerCase))
|
.filter(o -> o.toLowerCase().startsWith(lowerCase))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
@@ -52,7 +52,7 @@ public class SystemCommand extends ChildCommand {
|
|||||||
return System.getProperties().keySet()
|
return System.getProperties().keySet()
|
||||||
.stream()
|
.stream()
|
||||||
.map(Object::toString)
|
.map(Object::toString)
|
||||||
.filter(o -> o.startsWith(lowerCase))
|
.filter(o -> o.toLowerCase().startsWith(lowerCase))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
Reference in New Issue
Block a user