diff --git a/src/main/java/xyz/refinedev/phoenix/settings/api/builder/BooleanSettingsBuilder.java b/src/main/java/xyz/refinedev/phoenix/settings/api/builder/BooleanSettingsBuilder.java index 2fe0d48..833ee4e 100644 --- a/src/main/java/xyz/refinedev/phoenix/settings/api/builder/BooleanSettingsBuilder.java +++ b/src/main/java/xyz/refinedev/phoenix/settings/api/builder/BooleanSettingsBuilder.java @@ -5,6 +5,7 @@ import org.bukkit.Material; import org.bukkit.plugin.IllegalPluginAccessException; +import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -29,6 +30,10 @@ public final class BooleanSettingsBuilder { private boolean defaultValue = true; private String overrideValue; private Runnable afterAction = null; + private boolean useOverrideLore = false; + private List overrideEnabledLore = new ArrayList<>(); + private List overrideDisabledLore = new ArrayList<>(); + private List overrideNoPermissionLore = new ArrayList<>(); public BooleanSettingsBuilder titleOf(String title) { this.title = title; @@ -75,6 +80,26 @@ public BooleanSettingsBuilder overrideValueOf(String overrideValue) { return this; } + public BooleanSettingsBuilder overrideEnabledLoreOf(List overrideEnabledLore) { + this.overrideEnabledLore = overrideEnabledLore; + return this; + } + + public BooleanSettingsBuilder overrideDisabledLoreOf(List overrideDisabledLore) { + this.overrideDisabledLore = overrideDisabledLore; + return this; + } + + public BooleanSettingsBuilder overrideNoPermissionLoreOf(List overrideNoPermissionLore) { + this.overrideNoPermissionLore = overrideNoPermissionLore; + return this; + } + + public BooleanSettingsBuilder useOverrideLoreOf(boolean useOverrideLore) { + this.useOverrideLore = useOverrideLore; + return this; + } + public Button asButton() { throw new IllegalPluginAccessException("You need to install the plugin."); } diff --git a/src/main/java/xyz/refinedev/phoenix/settings/api/builder/IntegerSettingsBuilder.java b/src/main/java/xyz/refinedev/phoenix/settings/api/builder/IntegerSettingsBuilder.java index 8c6409a..e4086f4 100644 --- a/src/main/java/xyz/refinedev/phoenix/settings/api/builder/IntegerSettingsBuilder.java +++ b/src/main/java/xyz/refinedev/phoenix/settings/api/builder/IntegerSettingsBuilder.java @@ -5,6 +5,7 @@ import org.bukkit.Material; import org.bukkit.plugin.IllegalPluginAccessException; +import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -30,6 +31,9 @@ public final class IntegerSettingsBuilder { private int defaultValue = 0; private String overrideValue; private Runnable afterAction = null; + private boolean useOverrideLore = false; + private List overrideLore = new ArrayList<>(); + private List overrideNoPermissionLore = new ArrayList<>(); public IntegerSettingsBuilder titleOf(String title) { this.title = title; @@ -81,6 +85,22 @@ public IntegerSettingsBuilder overrideValueOf(String overrideValue) { return this; } + public IntegerSettingsBuilder overrideLoreOf(List overrideLore) { + this.overrideLore = overrideLore; + return this; + } + + public IntegerSettingsBuilder overrideNoPermissionLoreOf(List overrideNoPermissionLore) { + this.overrideNoPermissionLore = overrideNoPermissionLore; + return this; + } + + public IntegerSettingsBuilder useOverrideLoreOf(boolean useOverrideLore) { + this.useOverrideLore = useOverrideLore; + return this; + } + + public Button asButton() { throw new IllegalPluginAccessException("You need to install the plugin."); } diff --git a/src/main/java/xyz/refinedev/phoenix/settings/api/builder/MultiOptionsSettingsBuilder.java b/src/main/java/xyz/refinedev/phoenix/settings/api/builder/MultiOptionsSettingsBuilder.java index 49d8c41..53793ae 100644 --- a/src/main/java/xyz/refinedev/phoenix/settings/api/builder/MultiOptionsSettingsBuilder.java +++ b/src/main/java/xyz/refinedev/phoenix/settings/api/builder/MultiOptionsSettingsBuilder.java @@ -4,6 +4,7 @@ import org.bukkit.Material; import org.bukkit.plugin.IllegalPluginAccessException; +import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -27,6 +28,9 @@ public class MultiOptionsSettingsBuilder { private String permission = ""; private String overrideValue; private Runnable afterAction = null; + private boolean useOverrideLore = false; + private List overrideLore = new ArrayList<>(); + private List overrideNoPermissionLore = new ArrayList<>(); public MultiOptionsSettingsBuilder titleOf(String title) { this.title = title; @@ -78,6 +82,21 @@ public MultiOptionsSettingsBuilder overrideValueOf(String overrideValue) { return this; } + public MultiOptionsSettingsBuilder overrideLoreOf(List overrideLore) { + this.overrideLore = overrideLore; + return this; + } + + public MultiOptionsSettingsBuilder overrideNoPermissionLoreOf(List overrideNoPermissionLore) { + this.overrideNoPermissionLore = overrideNoPermissionLore; + return this; + } + + public MultiOptionsSettingsBuilder useOverrideLoreOf(boolean useOverrideLore) { + this.useOverrideLore = useOverrideLore; + return this; + } + public Button asButton() { throw new IllegalPluginAccessException("You need to install the plugin."); }