mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
ServerPlugin no longer implements JSONSerialisable (this feature was unused)
This commit is contained in:
parent
45d34c37ad
commit
92008e553a
@ -3,12 +3,10 @@ package net.simon987.server.plugin;
|
|||||||
import net.simon987.server.ServerConfiguration;
|
import net.simon987.server.ServerConfiguration;
|
||||||
import net.simon987.server.event.GameEventListener;
|
import net.simon987.server.event.GameEventListener;
|
||||||
import net.simon987.server.game.objects.GameRegistry;
|
import net.simon987.server.game.objects.GameRegistry;
|
||||||
import net.simon987.server.io.JSONSerialisable;
|
|
||||||
import org.json.simple.JSONObject;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public abstract class ServerPlugin implements JSONSerialisable {
|
public abstract class ServerPlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the plugin
|
* Name of the plugin
|
||||||
@ -49,15 +47,4 @@ public abstract class ServerPlugin implements JSONSerialisable {
|
|||||||
public ArrayList<GameEventListener> getListeners() {
|
public ArrayList<GameEventListener> getListeners() {
|
||||||
return listeners;
|
return listeners;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public JSONObject jsonSerialise() {
|
|
||||||
|
|
||||||
JSONObject json = new JSONObject();
|
|
||||||
|
|
||||||
json.put("name", name);
|
|
||||||
json.put("version", version);
|
|
||||||
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user