Merge pull request #84 from JEFF-Media-GbR/BestTool

Improved API
This commit is contained in:
mfnalex 2020-07-13 15:36:00 +02:00 committed by GitHub
commit 7340d4506f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -9,7 +9,7 @@
<name>ChestSort</name>
<url>https://www.chestsort.de</url>
<description>Automatically sorts your chests!</description>
<version>8.14.2</version>
<version>8.15.0</version>
<packaging>jar</packaging>
<properties>

View File

@ -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;
}

View File

@ -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