8.18.1 release

This commit is contained in:
mfnalex 2020-12-17 01:15:30 +01:00
parent e6db59324b
commit 4db574c054
4 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 8.18.1
- Improved API
## 8.18.0
- Added DeluxeMenus support
## 8.17.7-SNAPSHOT
- Fixed InventoryPages hook when using colored item names

View File

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

View File

@ -15,8 +15,9 @@ public class GenericGUIHook {
public boolean isPluginGUI(Inventory inv) {
if(!enabled) return false;
if(inv.getHolder()!=null && inv.getHolder().getClass().getName().toLowerCase().contains("gui")) {
main.debug("Generic GUI detected by class name containing \"gui\"");
if(inv.getHolder()!=null && (inv.getHolder().getClass().getName().toLowerCase().contains("gui")
|| inv.getHolder().getClass().getName().toLowerCase().contains("menu"))) {
main.debug("Generic GUI detected by class name containing \"gui\" or \"menu\"");
return true;
}
return false;

View File

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