mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-29 04:04:43 +02:00
More API refactoring work
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
package com.gmail.nossr50.mcmmo.api.platform;
|
||||
|
||||
import com.gmail.nossr50.mcmmo.api.data.MMOPlayer;
|
||||
import com.gmail.nossr50.mcmmo.api.platform.schedular.PlatformScheduler;
|
||||
import com.gmail.nossr50.mcmmo.api.platform.util.MetadataStore;
|
||||
|
||||
import java.io.File;
|
||||
@ -16,5 +16,21 @@ public interface PlatformProvider {
|
||||
|
||||
File getDataFolder();
|
||||
|
||||
void getVersion();
|
||||
String getVersion();
|
||||
|
||||
void earlyInit();
|
||||
|
||||
boolean isSupported(boolean print);
|
||||
|
||||
default boolean isSupported() {
|
||||
return isSupported(false);
|
||||
};
|
||||
|
||||
ServerSoftwareType getServerType();
|
||||
|
||||
void onLoad();
|
||||
|
||||
void printUnsupported();
|
||||
|
||||
PlatformScheduler getScheduler();
|
||||
}
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.gmail.nossr50.mcmmo.api.platform;
|
||||
|
||||
public enum ServerSoftwareType {
|
||||
PAPER("Paper"),
|
||||
SPIGOT("Spigot"),
|
||||
CRAFTBUKKIT("CraftBukkit");
|
||||
|
||||
private final String friendlyName;
|
||||
|
||||
ServerSoftwareType(String friendlyName) {
|
||||
|
||||
this.friendlyName = friendlyName;
|
||||
}
|
||||
|
||||
public String getFriendlyName() {
|
||||
return friendlyName;
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package com.gmail.nossr50.mcmmo.api.platform.schedular;
|
||||
|
||||
public interface PlatformScheduler {
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user