From 8ce629569432035a23125ebf9b6021c73f9aa097 Mon Sep 17 00:00:00 2001 From: summetdev Date: Sun, 3 Jan 2021 15:11:52 +0300 Subject: [PATCH 1/3] Compatibility with v122.1 --- build.gradle | 2 +- src/main/java/jseval/JSEval.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a3a5089..ccffbf2 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ repositories { } ext { - mindustryVersion = 'v121' + mindustryVersion = 'v122.1' pluginVersion = { def configFile = file("$rootDir/src/main/resources/plugin.json") diff --git a/src/main/java/jseval/JSEval.java b/src/main/java/jseval/JSEval.java index 79e2d15..0a4facd 100644 --- a/src/main/java/jseval/JSEval.java +++ b/src/main/java/jseval/JSEval.java @@ -2,10 +2,11 @@ import arc.util.*; import mindustry.gen.*; -import mindustry.mod.Plugin; +import mindustry.mod.*; import static mindustry.Vars.*; +@SuppressWarnings("unused") public class JSEval extends Plugin { @Override From 1d7fb75064d653435d05f29c950f8a3cf7229315 Mon Sep 17 00:00:00 2001 From: summetdev Date: Sun, 3 Jan 2021 15:15:49 +0300 Subject: [PATCH 2/3] 1.3 --- src/main/resources/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/plugin.json b/src/main/resources/plugin.json index cd3961b..a62e147 100644 --- a/src/main/resources/plugin.json +++ b/src/main/resources/plugin.json @@ -3,5 +3,5 @@ "description": "Allows admins to execute JavaScript code using a special command.", "author": "Summet", "main": "jseval.JSEval", - "version": "1.2" + "version": "1.3" } From 900fc2525b2297e6915ac8c99fc5d2b9e86669ce Mon Sep 17 00:00:00 2001 From: Fernando Date: Sun, 3 Jan 2021 10:39:34 -0300 Subject: [PATCH 3/3] Add warning about needing Java 14 (#3) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca318bf..af2893f 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,7 @@ A small plugin for Mindustry server. Allows admins to execute JavaScript code. Download the latest release (`.jar`) [here](https://github.com/summetdev/JSEval/releases/latest).
Put `.jar` file to `config/mods` folder. +WARNING: Needs Java 14 installed to use + ## How to use -If you're admin, use `/js ` command. \ No newline at end of file +If you're admin, use `/js ` command.