10.0.4 release (untested)

This commit is contained in:
BuildTools 2021-05-29 15:37:35 +02:00
parent e3921c8347
commit ef881a1c45
4 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 10.0.4
- Added compatibility to the ChestShopConfirmation plugin
## 10.0.3
- Fixed "Could not check for updates" message being shown to OPs on join when Update Checker is disabled

View File

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

View File

@ -3,10 +3,16 @@ package de.jeff_media.chestsort.hooks;
import de.jeff_media.chestsort.ChestSortPlugin;
import org.bukkit.inventory.Inventory;
import java.util.Arrays;
import java.util.List;
public class GenericGUIHook {
ChestSortPlugin main;
boolean enabled;
private final List<String> guiClasses = Arrays.asList(new String[] {
"me.droreo002.chestshopconfirmation.inventory.ConfirmationInventory"
});
public GenericGUIHook(ChestSortPlugin main, boolean enabled) {
this.main=main;
@ -20,6 +26,7 @@ public class GenericGUIHook {
main.debug("Generic GUI detected by class name containing \"gui\" or \"menu\"");
return true;
}
if(inv.getHolder() != null && guiClasses.contains(inv.getHolder().getClass().getName())) return true;
return false;
}

View File

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