Prerequisite is now normal object rather than enum

This commit is contained in:
Auxilor 2020-11-24 14:45:27 +00:00
parent 24d64f70e7
commit c33e54c6fc

View File

@ -5,12 +5,12 @@ import org.bukkit.Bukkit;
import java.util.Arrays;
public enum Prerequisite {
MinVer1_16(
public class Prerequisite {
public static final Prerequisite MinVer1_16 = new Prerequisite(
false,
"Requires minimum server version of 1.16"
),
HasPaper(
);
public static final Prerequisite HasPaper = new Prerequisite(
false,
"Requires server to be running paper (or a fork)"
);
@ -18,7 +18,7 @@ public enum Prerequisite {
private boolean isMet;
private final String description;
Prerequisite(boolean isMet, String description) {
protected Prerequisite(boolean isMet, String description) {
this.isMet = isMet;
this.description = description;
}