mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-06-26 06:35:04 +02:00
10.0.4 release (untested)
This commit is contained in:
parent
e3921c8347
commit
ef881a1c45
|
@ -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
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user