From dc1b460c6a61cbbc7d37d9b0838b65b3c65c68b7 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Thu, 15 Jun 2023 17:57:36 -0500 Subject: [PATCH] FIx initial errors --- core/src/main/java/dev/plex/itemizerx/ItemizerX.java | 10 +++++++++- core/src/main/resources/plugin.yml | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/dev/plex/itemizerx/ItemizerX.java b/core/src/main/java/dev/plex/itemizerx/ItemizerX.java index 0c7906b..772f38c 100644 --- a/core/src/main/java/dev/plex/itemizerx/ItemizerX.java +++ b/core/src/main/java/dev/plex/itemizerx/ItemizerX.java @@ -20,35 +20,43 @@ public class ItemizerX extends JavaPlugin { case "v1_20_R1": { getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_20_R1.ItemizerXCommand()); getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_20_R1.ItemizerXTab()); + return; } case "v1_19_R3": { getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R3.ItemizerXCommand()); getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R3.ItemizerXTab()); + return; } case "v1_19_R2": { getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R2.ItemizerXCommand()); getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R2.ItemizerXTab()); + return; } case "v1_19_R1": { getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R1.ItemizerXCommand()); getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R1.ItemizerXTab()); + return; } case "v1_18_R2": { getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R2.ItemizerXCommand()); getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R2.ItemizerXTab()); + return; } case "v1_18_R1": { getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R1.ItemizerXCommand()); getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R1.ItemizerXTab()); + return; } case "v1_17_R1": { getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_17_R1.ItemizerXCommand()); getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_17_R1.ItemizerXTab()); + return; } - default: + default: { getLogger().severe("You are trying to run ItemizerX on an incompatible server version."); getLogger().severe("ItemizerX only supports versions 1.17 to 1.20, disabling plugin."); getServer().getPluginManager().disablePlugin(this); + } } } diff --git a/core/src/main/resources/plugin.yml b/core/src/main/resources/plugin.yml index 4ab9695..dfb5d32 100644 --- a/core/src/main/resources/plugin.yml +++ b/core/src/main/resources/plugin.yml @@ -1,9 +1,10 @@ name: ItemizerX -version: 3.0 -api-version: 1.20 +version: 2.0 +api-version: 1.17 description: A rewrite of Itemizer author: Focusvity, Telesphoreo main: dev.plex.itemizerx.ItemizerX +folia-supported: true softdepend: - CoreProtect commands: