9.4.0 release

This commit is contained in:
mfnalex 2021-03-01 12:41:56 +01:00
parent 19c2c727bf
commit 238f48ac11
5 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 9.4.0
- Added support for more PlayerVault plugins (specifically EnderVaults)
## 9.3.0
- Added CraftBukkit compatibility (although I don't unterstand why anyone would prefer CraftBukkit over Spigot)

View File

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

View File

@ -14,7 +14,8 @@ public class PlayerVaultsHook {
public boolean isPlayerVault(Inventory inv) {
if(inv==null) return false;
if(inv.getHolder()==null) return false;
if(!main.getConfig().getBoolean("hook-playervaultsx",true)) return false;
return inv.getHolder().getClass().getName().equals("com.drtshock.playervaults.vaultmanagement.VaultHolder");
if(!main.getConfig().getBoolean("hook-playervaults",true)) return false;
return inv.getHolder().getClass().getName().equals("com.drtshock.playervaults.vaultmanagement.VaultHolder")
|| inv.getHolder().getClass().getName().equals("com.github.dig.endervaults.bukkit.vault.BukkitInventoryHolder");
}
}

View File

@ -229,10 +229,10 @@ hook-inventorypages: true
# backpacks and sort them like a regular chest.
hook-minepacks: true
##### PlayerVaultsX #####
# When PlayerVaultsX is installed, ChestSort can sort your
##### PlayerVaults and similar plugins #####
# When PlayerVaults or similar plugins are installed, ChestSort can sort your
# player vaults just like regular chests.
hook-playervaultsx: true
hook-playervaults: true
##### CrateReloaded #####
# Prevents the player from using hotkeys on a crate

View File

@ -1,6 +1,6 @@
main: de.jeff_media.ChestSort.ChestSortPlugin
name: ChestSort
version: 9.3.0
version: 9.4.0
api-version: "1.13"
description: Allows automatic chest sorting
author: mfnalex