diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/action/Action.java b/Plugin/src/main/java/me/filoghost/chestcommands/action/Action.java index 9838529..b336658 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/action/Action.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/action/Action.java @@ -17,7 +17,7 @@ package me.filoghost.chestcommands.action; import org.bukkit.entity.Player; import me.filoghost.chestcommands.config.AsciiPlaceholders; -import me.filoghost.chestcommands.internal.VariableManager; +import me.filoghost.chestcommands.variable.VariableManager; public abstract class Action { diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/api/Icon.java b/Plugin/src/main/java/me/filoghost/chestcommands/api/Icon.java index 590e8e8..96d9559 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/api/Icon.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/api/Icon.java @@ -25,8 +25,8 @@ import org.bukkit.inventory.meta.LeatherArmorMeta; import org.bukkit.inventory.meta.SkullMeta; import me.filoghost.chestcommands.ChestCommands; -import me.filoghost.chestcommands.internal.VariableManager; import me.filoghost.chestcommands.util.Utils; +import me.filoghost.chestcommands.variable.VariableManager; import java.util.ArrayList; import java.util.Arrays; diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/internal/CachedGetters.java b/Plugin/src/main/java/me/filoghost/chestcommands/variable/CachedGetters.java similarity index 93% rename from Plugin/src/main/java/me/filoghost/chestcommands/internal/CachedGetters.java rename to Plugin/src/main/java/me/filoghost/chestcommands/variable/CachedGetters.java index 5410a0f..73d1de0 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/internal/CachedGetters.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/variable/CachedGetters.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package me.filoghost.chestcommands.internal; +package me.filoghost.chestcommands.variable; import org.bukkit.Bukkit; diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/internal/Variable.java b/Plugin/src/main/java/me/filoghost/chestcommands/variable/Variable.java similarity index 93% rename from Plugin/src/main/java/me/filoghost/chestcommands/internal/Variable.java rename to Plugin/src/main/java/me/filoghost/chestcommands/variable/Variable.java index ad420e9..8b986b9 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/internal/Variable.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/variable/Variable.java @@ -12,7 +12,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package me.filoghost.chestcommands.internal; +package me.filoghost.chestcommands.variable; import org.bukkit.Bukkit; import org.bukkit.entity.Player; diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/internal/VariableManager.java b/Plugin/src/main/java/me/filoghost/chestcommands/variable/VariableManager.java similarity index 91% rename from Plugin/src/main/java/me/filoghost/chestcommands/internal/VariableManager.java rename to Plugin/src/main/java/me/filoghost/chestcommands/variable/VariableManager.java index e0496f2..ac7b3f8 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/internal/VariableManager.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/variable/VariableManager.java @@ -1,36 +1,36 @@ -package me.filoghost.chestcommands.internal; - -import org.bukkit.entity.Player; - -import me.filoghost.chestcommands.bridge.PlaceholderAPIBridge; - -public class VariableManager { - - public static boolean hasVariables(String message) { - if(message == null) { - return false; - } - for (Variable variable : Variable.values()) { - if (message.contains(variable.getText())) { - return true; - } - } - if (PlaceholderAPIBridge.hasValidPlugin() && PlaceholderAPIBridge.hasPlaceholders(message)) { - return true; - } - return false; - } - - public static String setVariables(String message, Player executor) { - for (Variable variable : Variable.values()) { - if (message.contains(variable.getText())) { - message = message.replace(variable.getText(), variable.getReplacement(executor)); - } - } - if (PlaceholderAPIBridge.hasValidPlugin()) { - message = PlaceholderAPIBridge.setPlaceholders(message, executor); - } - return message; - } - -} +package me.filoghost.chestcommands.variable; + +import org.bukkit.entity.Player; + +import me.filoghost.chestcommands.bridge.PlaceholderAPIBridge; + +public class VariableManager { + + public static boolean hasVariables(String message) { + if(message == null) { + return false; + } + for (Variable variable : Variable.values()) { + if (message.contains(variable.getText())) { + return true; + } + } + if (PlaceholderAPIBridge.hasValidPlugin() && PlaceholderAPIBridge.hasPlaceholders(message)) { + return true; + } + return false; + } + + public static String setVariables(String message, Player executor) { + for (Variable variable : Variable.values()) { + if (message.contains(variable.getText())) { + message = message.replace(variable.getText(), variable.getReplacement(executor)); + } + } + if (PlaceholderAPIBridge.hasValidPlugin()) { + message = PlaceholderAPIBridge.setPlaceholders(message, executor); + } + return message; + } + +}