diff --git a/CHANGELOG.md b/CHANGELOG.md index 037ec3d..0d1b3bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 8.15.0 +- Enabled left-click and right-click hotkey for 3rd party plugins implementing the ISortable interface from ChestSort's API (You only need this update if you use plugins depending on the ChestSortAPI) + ## 8.14.2 - Made CrateReloaded hook and HeadDatabase hook toggleable - Fixed wrong version number in plugin.yml diff --git a/TODO.md b/TODO.md index f3250a3..57229eb 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,6 @@ # Todo - +## Auto updater +Automatically use latest version ## StackableItems Make it configurable whether ItemStacks > 64 items will stay unsorted, or sorted and reverted back to stacks of 64 items -> https://www.spigotmc.org/threads/1-8-1-15-chestsort-api.334121/page-19#post-3821591 diff --git a/pom.xml b/pom.xml index bce9d14..71003b2 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ ChestSort https://www.chestsort.de Automatically sorts your chests! - 8.14.2 + 8.15.0 jar diff --git a/src/main/java/de/jeff_media/ChestSort/ChestSortListener.java b/src/main/java/de/jeff_media/ChestSort/ChestSortListener.java index a005f59..7079b9e 100644 --- a/src/main/java/de/jeff_media/ChestSort/ChestSortListener.java +++ b/src/main/java/de/jeff_media/ChestSort/ChestSortListener.java @@ -479,7 +479,8 @@ public class ChestSortListener implements Listener { && e.getInventory().getType() != InventoryType.DROPPER && e.getInventory().getType() != InventoryType.ENDER_CHEST && !e.getInventory().getType().name().equalsIgnoreCase("SHULKER_BOX") - && (e.getInventory().getHolder() == null || !e.getInventory().getHolder().getClass().toString().endsWith(".CraftBarrel"))) { + && (e.getInventory().getHolder() == null || !e.getInventory().getHolder().getClass().toString().endsWith(".CraftBarrel")) + && !(e.getInventory().getHolder() instanceof ISortable)) { return; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 5e8ec43..4ca41ef 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ main: de.jeff_media.ChestSort.ChestSortPlugin name: ChestSort -version: 8.14.2 +version: 8.15.0 api-version: "1.13" description: Allows automatic chest sorting author: mfnalex