mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 14:04:08 +00:00
Bump down the plugin API version
nothing major was *removed*, meaning all existing v2 plugins should still work
This commit is contained in:
parent
ed0e89074b
commit
416ef56101
@ -1,17 +1,18 @@
|
|||||||
package emu.grasscutter.plugin;
|
package emu.grasscutter.plugin;
|
||||||
|
|
||||||
import static emu.grasscutter.utils.lang.Language.translate;
|
|
||||||
|
|
||||||
import emu.grasscutter.Grasscutter;
|
import emu.grasscutter.Grasscutter;
|
||||||
import emu.grasscutter.server.event.*;
|
import emu.grasscutter.server.event.*;
|
||||||
import emu.grasscutter.utils.*;
|
import emu.grasscutter.utils.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.net.*;
|
import java.net.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.jar.*;
|
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. */
|
/** Manages the server's plugins and the event system. */
|
||||||
public final class PluginManager {
|
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.
|
* A 'breaking change' is something which changes the existing logic of the API.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("FieldCanBeLocal")
|
@SuppressWarnings("FieldCanBeLocal")
|
||||||
public static int API_VERSION = 3;
|
public static int API_VERSION = 2;
|
||||||
|
|
||||||
/* All loaded plugins. */
|
/* All loaded plugins. */
|
||||||
private final Map<String, Plugin> plugins = new LinkedHashMap<>();
|
private final Map<String, Plugin> plugins = new LinkedHashMap<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user