mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Prerequisite is now normal object rather than enum
This commit is contained in:
parent
24d64f70e7
commit
c33e54c6fc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user