Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
c30f90081e
Commit
fd601dc9ce
@ -204,22 +204,25 @@ public class CustomScript {
|
|||||||
if (menuCommand.args.length != args.length) {
|
if (menuCommand.args.length != args.length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!args[0].equals(menuCommand.args[0])) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (int i = 0; i < args.length; i++) {
|
for (int i = 0; i < args.length; i++) {
|
||||||
if (i == 0) continue;
|
if (i == 0) continue;
|
||||||
String s1 = args[i];
|
String s1 = args[i];
|
||||||
String s2 = menuCommand.args[i];
|
String s2 = menuCommand.args[i];
|
||||||
if (s1.equals(s2)) {
|
if (!s1.equals(s2)) {
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (s1.startsWith("<") && s1.endsWith(">") && s2.startsWith("<") && s2.endsWith(">")) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (s1.startsWith("(<") && s1.endsWith(">)") && s2.startsWith("(<") && s2.endsWith(">)")) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!(s1.startsWith("<") && s1.endsWith(">") && s2.startsWith("<") && s2.endsWith(">"))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!(s1.startsWith("(<") && s1.endsWith(">)") && s2.startsWith("(<") && s2.endsWith(">)"))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void toYAPION(YAPIONMap yapionMap) {
|
public void toYAPION(YAPIONMap yapionMap) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren