mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-03-02 11:11:09 +01:00
9.0.1 release
This commit is contained in:
parent
2894ee3966
commit
13a64fce16
@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## 9.0.1
|
||||
- Added option "dont-move-slimefun-backpacks" to prevent a bug related to backpacks caused by Slimefun (false by default)
|
||||
|
||||
## 9.0.0
|
||||
THIS UPDATE IS IMPORTANT WHEN YOU ARE USING PLUGINS THAT INTERACT WITH CHESTSORT
|
||||
Note: When you are using other plugins that depend on the ChestSortAPI 2.0.0+ (e.g. probably the next release of ItemJoin AFAIK) you need at least this version of ChestSort.
|
||||
|
12
pom.xml
12
pom.xml
@ -9,7 +9,7 @@
|
||||
<name>ChestSort</name>
|
||||
<url>https://www.chestsort.de</url>
|
||||
<description>Automatically sorts your chests!</description>
|
||||
<version>9.0.0</version>
|
||||
<version>9.0.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
@ -105,6 +105,10 @@
|
||||
<id>jeff-media-gbr</id>
|
||||
<url>https://repo.jeff-media.de/maven2</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>jitpack.io</id>
|
||||
<url>https://jitpack.io</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
@ -169,6 +173,12 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.TheBusyBiscuit</groupId>
|
||||
<artifactId>Slimefun4</artifactId>
|
||||
<version>RC-15</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<distributionManagement>
|
||||
|
@ -2,6 +2,7 @@ package de.jeff_media.ChestSort;
|
||||
|
||||
import de.jeff_media.ChestSort.hooks.CrackShotHook;
|
||||
import de.jeff_media.ChestSort.hooks.InventoryPagesHook;
|
||||
import de.jeff_media.ChestSort.hooks.SlimeFunHook;
|
||||
import de.jeff_media.ChestSort.utils.CategoryLinePair;
|
||||
import de.jeff_media.ChestSort.utils.TypeMatchPositionPair;
|
||||
import de.jeff_media.ChestSort.utils.Utils;
|
||||
@ -527,6 +528,7 @@ public class ChestSortOrganizer {
|
||||
for (int i = startSlot; i <= endSlot; i++) {
|
||||
if ((plugin.hookMinepacks && plugin.listener.minepacksHook.isMinepacksBackpack(items[i]))
|
||||
|| (plugin.hookInventoryPages && inventoryPagesHook.isButton(items[i], i, inv))
|
||||
|| (plugin.getConfig().getBoolean("dont-move-slimefun-backpacks") && SlimeFunHook.isSlimefunBackpack(items[i]))
|
||||
|| isOversizedStack(items[i])
|
||||
|| chestSortEvent.isUnmovable(i)
|
||||
|| chestSortEvent.isUnmovable(items[i])) {
|
||||
|
@ -70,7 +70,7 @@ public class ChestSortPlugin extends JavaPlugin implements de.jeff_media.ChestSo
|
||||
String sortingMethod;
|
||||
ArrayList<String> disabledWorlds;
|
||||
ChestSortAPIHandler api;
|
||||
final int currentConfigVersion = 43;
|
||||
final int currentConfigVersion = 44;
|
||||
boolean usingMatchingConfig = true;
|
||||
protected boolean debug = false;
|
||||
boolean verbose = true;
|
||||
|
@ -0,0 +1,12 @@
|
||||
package de.jeff_media.ChestSort.hooks;
|
||||
|
||||
import io.github.thebusybiscuit.slimefun4.implementation.items.backpacks.SlimefunBackpack;
|
||||
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class SlimeFunHook {
|
||||
|
||||
public static boolean isSlimefunBackpack(ItemStack item) {
|
||||
return SlimefunItem.getByItem(item) instanceof SlimefunBackpack;
|
||||
}
|
||||
}
|
@ -233,6 +233,12 @@ hook-cratereloaded: true
|
||||
# Prevents the player from using hotkeys on the HeadDatabase GUI
|
||||
hook-headdatabase: true
|
||||
|
||||
##### Slimefun #####
|
||||
# Some versions of Slimefun fail to prevent putting the backpack into itself
|
||||
# when you do so immediately after ChestSort moved a backpack. You can
|
||||
# prevent ChestSort from moving Slimefun backpacks until they fixed this.
|
||||
dont-move-slimefun-backpacks: false
|
||||
|
||||
##### Other backpack plugins #####
|
||||
# ChestSort is able to detect backpacks from most backpack
|
||||
# plugins like ShulkerPacks or Better Shulker Boxes.
|
||||
@ -639,4 +645,4 @@ log: false
|
||||
|
||||
# Please DO NOT change the following line manually!
|
||||
# It is used by the automatic config updater.
|
||||
config-version: 43
|
||||
config-version: 44
|
@ -1,6 +1,6 @@
|
||||
main: de.jeff_media.ChestSort.ChestSortPlugin
|
||||
name: ChestSort
|
||||
version: 9.0.0
|
||||
version: 9.0.1
|
||||
api-version: "1.13"
|
||||
description: Allows automatic chest sorting
|
||||
author: mfnalex
|
||||
|
Loading…
Reference in New Issue
Block a user