From 416ef561017f3c3b9d13b67d74d7b05fd3147af0 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sat, 2 Sep 2023 19:05:30 -0400 Subject: [PATCH] Bump down the plugin API version nothing major was *removed*, meaning all existing v2 plugins should still work --- .../java/emu/grasscutter/plugin/PluginManager.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/emu/grasscutter/plugin/PluginManager.java b/src/main/java/emu/grasscutter/plugin/PluginManager.java index 7b0e3020e..717bce10e 100644 --- a/src/main/java/emu/grasscutter/plugin/PluginManager.java +++ b/src/main/java/emu/grasscutter/plugin/PluginManager.java @@ -1,17 +1,18 @@ package emu.grasscutter.plugin; -import static emu.grasscutter.utils.lang.Language.translate; - import emu.grasscutter.Grasscutter; import emu.grasscutter.server.event.*; import emu.grasscutter.utils.*; +import lombok.*; + +import javax.annotation.Nullable; import java.io.*; import java.lang.reflect.Method; import java.net.*; import java.util.*; import java.util.jar.*; -import javax.annotation.Nullable; -import lombok.*; + +import static emu.grasscutter.utils.lang.Language.translate; /** Manages the server's plugins and the event system. */ public final class PluginManager { @@ -20,7 +21,7 @@ public final class PluginManager { * A 'breaking change' is something which changes the existing logic of the API. */ @SuppressWarnings("FieldCanBeLocal") - public static int API_VERSION = 3; + public static int API_VERSION = 2; /* All loaded plugins. */ private final Map plugins = new LinkedHashMap<>();