blob: ab543fa6109739bd10554a948374bcc6e7082b64 [file] [log] [blame] [raw]
package protocolsupport.api;
import protocolsupport.zplatform.ServerPlatform;
public enum ServerPlatformIdentifier {
SPIGOT("Spigot"),
GLOWSTONE("GlowStone");
/**
* Returns current platform identifier
* @return current platform identifier
*/
public static ServerPlatformIdentifier get() {
return ServerPlatform.get().getIdentifier();
}
private final String name;
private ServerPlatformIdentifier(String name) {
this.name = name;
}
/**
* Returns user friendly server platform name <br>
* This name can change, so it shouldn't be used as a key anywhere
* @return user friendly server platform name
*/
public String getName() {
return name;
}
}