File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import:
2+ ch.njol.skript.lang.Condition
3+
4+ condition <(.+)> (1:&&|2:\|\|) <(.+)>:
5+ check:
6+ set {_a} to first element of regex-1
7+ set {_b} to first element of regex-2
8+ set {_message} to "Can't understand this condition: "
9+ set {_bool1} to Condition.parse({_a}, "%{_message}%%{_a}%").check(event)
10+ set {_bool2} to Condition.parse({_b}, "%{_message}%%{_b}%").check(event)
11+ if parse mark is 1:
12+ if all:
13+ {_bool1} is true
14+ {_bool2} is true
15+ then:
16+ continue
17+ else:
18+ if any:
19+ {_bool1} is true
20+ {_bool2} is true
21+ then:
22+ continue
23+
24+ expression boolean value of condition <(.+)>:
25+ get:
26+ set {_b} to first element of regex-1
27+ set {_message} to "Can't understand this condition: "
28+ return Condition.parse({_b}, "%{_message}%%{_b}%").check(event)
You can’t perform that action at this time.
0 commit comments