mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Added extension dump data & make plugins be enabled on reload
This commit is contained in:
parent
805f7f666a
commit
f3a331981f
8 changed files with 39 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
|
||||
package org.geysermc.geyser.api.extension;
|
||||
|
||||
/**
|
||||
* This is the Geyser extension logger
|
||||
*/
|
||||
public interface ExtensionLogger {
|
||||
/**
|
||||
* Get the logger prefix
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue