From f667f967eab2a4e47c58bb21cc33940a4b3baffb Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 13 Jun 2020 19:43:10 +0200 Subject: [PATCH] Create icon package --- .../me/filoghost/chestcommands/menu/AdvancedIconMenu.java | 1 + .../chestcommands/menu/{ => icon}/AdvancedIcon.java | 5 ++++- .../chestcommands/menu/{ => icon}/PermissionChecker.java | 2 +- .../chestcommands/menu/{ => icon}/RequiredItem.java | 2 +- .../java/me/filoghost/chestcommands/parser/IconParser.java | 4 ++-- .../java/me/filoghost/chestcommands/parser/MenuParser.java | 2 +- 6 files changed, 10 insertions(+), 6 deletions(-) rename Plugin/src/main/java/me/filoghost/chestcommands/menu/{ => icon}/AdvancedIcon.java (93%) rename Plugin/src/main/java/me/filoghost/chestcommands/menu/{ => icon}/PermissionChecker.java (93%) rename Plugin/src/main/java/me/filoghost/chestcommands/menu/{ => icon}/RequiredItem.java (94%) diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/menu/AdvancedIconMenu.java b/Plugin/src/main/java/me/filoghost/chestcommands/menu/AdvancedIconMenu.java index 5ea2d03..aa8fcdf 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/menu/AdvancedIconMenu.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/menu/AdvancedIconMenu.java @@ -25,6 +25,7 @@ import org.bukkit.inventory.meta.ItemMeta; import me.filoghost.chestcommands.ChestCommands; import me.filoghost.chestcommands.Permissions; import me.filoghost.chestcommands.action.Action; +import me.filoghost.chestcommands.menu.icon.AdvancedIcon; public class AdvancedIconMenu extends BaseIconMenu { diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/menu/AdvancedIcon.java b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/AdvancedIcon.java similarity index 93% rename from Plugin/src/main/java/me/filoghost/chestcommands/menu/AdvancedIcon.java rename to Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/AdvancedIcon.java index a768649..94ca3c7 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/menu/AdvancedIcon.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/AdvancedIcon.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.menu; +package me.filoghost.chestcommands.menu.icon; import java.util.List; @@ -26,6 +26,9 @@ import me.filoghost.chestcommands.action.GiveMoneyAction; import me.filoghost.chestcommands.action.OpenMenuAction; import me.filoghost.chestcommands.api.impl.ConfigurableIconImpl; import me.filoghost.chestcommands.bridge.EconomyBridge; +import me.filoghost.chestcommands.menu.AdvancedIconMenu; +import me.filoghost.chestcommands.menu.BaseIconMenu; +import me.filoghost.chestcommands.menu.MenuManager; import me.filoghost.chestcommands.util.MaterialsHelper; public class AdvancedIcon extends ConfigurableIconImpl { diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/menu/PermissionChecker.java b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/PermissionChecker.java similarity index 93% rename from Plugin/src/main/java/me/filoghost/chestcommands/menu/PermissionChecker.java rename to Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/PermissionChecker.java index f51cef4..032b7c4 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/menu/PermissionChecker.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/PermissionChecker.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.menu; +package me.filoghost.chestcommands.menu.icon; import org.bukkit.entity.Player; diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/menu/RequiredItem.java b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/RequiredItem.java similarity index 94% rename from Plugin/src/main/java/me/filoghost/chestcommands/menu/RequiredItem.java rename to Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/RequiredItem.java index b6be637..37cbdc5 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/menu/RequiredItem.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/menu/icon/RequiredItem.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.menu; +package me.filoghost.chestcommands.menu.icon; import org.bukkit.Material; import org.bukkit.inventory.Inventory; diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/parser/IconParser.java b/Plugin/src/main/java/me/filoghost/chestcommands/parser/IconParser.java index edd1b6e..4c22c4b 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/parser/IconParser.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/parser/IconParser.java @@ -26,8 +26,8 @@ import me.filoghost.chestcommands.ChestCommands; import me.filoghost.chestcommands.action.Action; import me.filoghost.chestcommands.config.AsciiPlaceholders; import me.filoghost.chestcommands.config.ConfigUtil; -import me.filoghost.chestcommands.menu.AdvancedIcon; -import me.filoghost.chestcommands.menu.RequiredItem; +import me.filoghost.chestcommands.menu.icon.AdvancedIcon; +import me.filoghost.chestcommands.menu.icon.RequiredItem; import me.filoghost.chestcommands.parser.EnchantmentParser.EnchantmentDetails; import me.filoghost.chestcommands.util.ErrorCollector; import me.filoghost.chestcommands.util.FormatUtils; diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/parser/MenuParser.java b/Plugin/src/main/java/me/filoghost/chestcommands/parser/MenuParser.java index 824eb2d..143ec66 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/parser/MenuParser.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/parser/MenuParser.java @@ -24,8 +24,8 @@ import me.filoghost.chestcommands.ChestCommands; import me.filoghost.chestcommands.action.Action; import me.filoghost.chestcommands.config.ConfigUtil; import me.filoghost.chestcommands.config.yaml.PluginConfig; -import me.filoghost.chestcommands.menu.AdvancedIcon; import me.filoghost.chestcommands.menu.AdvancedIconMenu; +import me.filoghost.chestcommands.menu.icon.AdvancedIcon; import me.filoghost.chestcommands.menu.settings.ClickType; import me.filoghost.chestcommands.menu.settings.MenuSettings; import me.filoghost.chestcommands.menu.settings.OpenTrigger;