mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2026-02-27 06:11:13 +01:00
Add CurseForge Update checker
This commit is contained in:
@@ -26,6 +26,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public final class PlaceholderAPIConfig {
|
||||
private boolean checkUpdates;
|
||||
private boolean cloudEnabled;
|
||||
private boolean debugMode;
|
||||
private ExpansionSort cloudSorting;
|
||||
@@ -33,8 +34,9 @@ public final class PlaceholderAPIConfig {
|
||||
private String dateFormat;
|
||||
private Map<String, Object> expansions;
|
||||
|
||||
public PlaceholderAPIConfig(boolean cloudEnabled, boolean debugMode, @NotNull ExpansionSort cloudSorting,
|
||||
public PlaceholderAPIConfig(boolean checkUpdates, boolean cloudEnabled, boolean debugMode, @NotNull ExpansionSort cloudSorting,
|
||||
@NotNull BooleanValue booleanValue, @NotNull String dateFormat) {
|
||||
this.checkUpdates = checkUpdates;
|
||||
this.cloudEnabled = cloudEnabled;
|
||||
this.debugMode = debugMode;
|
||||
this.cloudSorting = cloudSorting;
|
||||
@@ -43,8 +45,9 @@ public final class PlaceholderAPIConfig {
|
||||
this.expansions = new HashMap<>();
|
||||
}
|
||||
|
||||
public PlaceholderAPIConfig(boolean cloudEnabled, boolean debugMode, @NotNull ExpansionSort cloudSorting,
|
||||
public PlaceholderAPIConfig(boolean checkUpdates, boolean cloudEnabled, boolean debugMode, @NotNull ExpansionSort cloudSorting,
|
||||
@NotNull BooleanValue booleanValue, @NotNull String dateFormat, Map<String, Object> expansions) {
|
||||
this.checkUpdates = checkUpdates;
|
||||
this.cloudEnabled = cloudEnabled;
|
||||
this.debugMode = debugMode;
|
||||
this.cloudSorting = cloudSorting;
|
||||
@@ -53,6 +56,10 @@ public final class PlaceholderAPIConfig {
|
||||
this.expansions = expansions;
|
||||
}
|
||||
|
||||
public boolean checkUpdates() {
|
||||
return checkUpdates;
|
||||
}
|
||||
|
||||
public boolean cloudEnabled() {
|
||||
return cloudEnabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user