Ursprung
41c0117d06
Commit
089113f0c0
@ -80,8 +80,15 @@ public class SearchPart extends SWCommand {
|
||||
String current = query[i];
|
||||
if (searchMapper.containsKey(current)) {
|
||||
if (searchMapper.get(current) == null) {
|
||||
if (current.equals("-public")) {
|
||||
userId = 0;
|
||||
switch (current) {
|
||||
case "-public":
|
||||
userId = 0;
|
||||
break;
|
||||
case "-ignoreCase":
|
||||
isIgnoreCase.set(true);
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unexpected value: " + current);
|
||||
}
|
||||
} else if (i + 1 < query.length) {
|
||||
int finalI = i;
|
||||
@ -114,9 +121,6 @@ public class SearchPart extends SWCommand {
|
||||
}
|
||||
predicates.add(node -> node.getOwner() != steamwarUser1.getId());
|
||||
break;
|
||||
case "-ignoreCase":
|
||||
isIgnoreCase.set(true);
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException("Unexpected value: " + current);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren