Prerequisite is now normal object rather than enum
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user