Added extension dump data & make plugins be enabled on reload

This commit is contained in:
ImDaBigBoss 2022-01-12 15:31:28 +01:00
parent 805f7f666a
commit f3a331981f
8 changed files with 39 additions and 10 deletions

View file

@ -27,6 +27,9 @@ package org.geysermc.geyser.api.extension;
import java.util.List;
/**
* This is the Geyer extension description
*/
public interface ExtensionDescription {
/**
* Gets the extension's name
@ -47,7 +50,7 @@ public interface ExtensionDescription {
*
* @return the extension's api version
*/
String ApiVersion();
String apiVersion();
/**
* Gets the extension's description

View file

@ -29,6 +29,9 @@ import org.geysermc.geyser.api.extension.exception.InvalidDescriptionException;
import org.geysermc.geyser.api.extension.exception.InvalidExtensionException;
import java.io.File;
/**
* The extension loader is responsible for loading, unloading, enabling and disabling extensions
*/
public interface ExtensionLoader {
/**
* Loads an extension from a given file

View file

@ -25,6 +25,9 @@
package org.geysermc.geyser.api.extension;
/**
* This is the Geyser extension logger
*/
public interface ExtensionLogger {
/**
* Get the logger prefix

View file

@ -30,6 +30,9 @@ import java.io.*;
import java.net.URL;
import java.net.URLConnection;
/**
* This class is to be extended by a Geyser extension
*/
public class GeyserExtension {
private boolean initialized = false;
private boolean enabled = false;