Skip to content

Commit d49527b

Browse files
authored
Merge pull request #83 from SkriptLang/prep-for-2.4
Prepare for 2.4 release
2 parents b287809 + 243e316 commit d49527b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.apache.tools.ant.filters.ReplaceTokens
22

33
group 'com.btk5h.skript-mirror'
4-
version '2.4-dev1'
4+
version '2.4'
55

66
apply plugin: 'java'
77

@@ -35,6 +35,6 @@ compileJava {
3535

3636
dependencies {
3737
implementation 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
38-
implementation 'com.github.SkriptLang:Skript:2.8.0-pre1'
38+
implementation 'com.github.SkriptLang:Skript:2.8.0'
3939
implementation 'org.eclipse.jdt:org.eclipse.jdt.annotation:1.1.0'
4040
}

src/main/java/org/skriptlang/reflect/syntax/event/EventSyntaxInfo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.skriptlang.reflect.syntax.event;
22

3+
import ch.njol.skript.Skript;
4+
import ch.njol.skript.util.Version;
35
import com.btk5h.skriptmirror.util.SkriptMirrorUtil;
46
import org.skriptlang.reflect.syntax.CustomSyntaxStructure;
57
import org.skriptlang.skript.lang.script.Script;
@@ -13,6 +15,8 @@ protected EventSyntaxInfo(Script script, String pattern, int matchedPattern) {
1315
}
1416

1517
public static EventSyntaxInfo create(Script script, String pattern, int matchedPattern) {
18+
if (Skript.getVersion().isSmallerThan(new Version(2, 8)))
19+
pattern = "[on] " + pattern + " [with priority (lowest|low|normal|high|highest|monitor)]";
1620
return new EventSyntaxInfo(script, SkriptMirrorUtil.preprocessPattern(pattern), matchedPattern);
1721
}
1822

0 commit comments

Comments
 (0)