Dieser Commit ist enthalten in:
Ursprung
f5bb922df9
Commit
8de16e966c
@ -303,7 +303,7 @@ public class SchematicCommand extends SWCommand {
|
||||
int finalI = i;
|
||||
switch (current) {
|
||||
case "-type":
|
||||
predicates.add(node -> node.getSchemtype().name().equalsIgnoreCase(query[finalI + 1]));
|
||||
predicates.add(node -> !node.isDir() && node.getSchemtype().name().equalsIgnoreCase(query[finalI + 1]));
|
||||
break;
|
||||
case "-item":
|
||||
predicates.add(node -> node.getItem().equalsIgnoreCase(query[finalI + 1]));
|
||||
@ -320,7 +320,7 @@ public class SchematicCommand extends SWCommand {
|
||||
predicates.add(node -> !node.getName().contains(query[finalI + 1]));
|
||||
break;
|
||||
case "-excludeType":
|
||||
predicates.add(node -> !node.getSchemtype().name().equalsIgnoreCase(query[finalI + 1]));
|
||||
predicates.add(node -> !node.isDir() && !node.getSchemtype().name().equalsIgnoreCase(query[finalI + 1]));
|
||||
break;
|
||||
case "-excludeOwner":
|
||||
SteamwarUser steamwarUser1 = SteamwarUser.get(query[finalI + 1]);
|
||||
@ -340,7 +340,7 @@ public class SchematicCommand extends SWCommand {
|
||||
i++;
|
||||
}
|
||||
|
||||
List<SchematicNode> nodes = SchematicNode.getAll(user).stream().filter(node -> {
|
||||
List<SchematicNode> nodes = SchematicNode.getAll(SteamwarUser.get(userId)).stream().filter(node -> {
|
||||
for (Predicate<SchematicNode> predicate : predicates) {
|
||||
if (!predicate.test(node)) {
|
||||
return false;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren