Skip to content

Commit

Permalink
Merge pull request #83 from SkriptLang/prep-for-2.4
Browse files Browse the repository at this point in the history
Prepare for 2.4 release
  • Loading branch information
Pikachu920 authored Jan 16, 2024
2 parents b287809 + 243e316 commit d49527b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.apache.tools.ant.filters.ReplaceTokens

group 'com.btk5h.skript-mirror'
version '2.4-dev1'
version '2.4'

apply plugin: 'java'

Expand Down Expand Up @@ -35,6 +35,6 @@ compileJava {

dependencies {
implementation 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
implementation 'com.github.SkriptLang:Skript:2.8.0-pre1'
implementation 'com.github.SkriptLang:Skript:2.8.0'
implementation 'org.eclipse.jdt:org.eclipse.jdt.annotation:1.1.0'
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.skriptlang.reflect.syntax.event;

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

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

Expand Down

0 comments on commit d49527b

Please sign in to comment.