This commit is contained in:
mfnalex 2020-05-16 20:23:17 +02:00
parent cc42bfd3ec
commit 84516eafbc
3 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>de.jeffclan</groupId>
<artifactId>JeffChestSort</artifactId>
<version>7.3</version>
<version>7.4-pre3</version>
<packaging>jar</packaging>
<name>JeffChestSort</name>

View File

@ -294,7 +294,7 @@ public class JeffChestSortListener implements Listener {
plugin.organizer.sortInventory(event.getInventory());
}
}
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
public void onInventoryClickEvent(InventoryClickEvent event) {
@ -337,6 +337,12 @@ public class JeffChestSortListener implements Listener {
return;
}
// Prevent player from putting items into GUI inventory
if(event.getInventory() == setting.guiInventory) {
event.setCancelled(true);
return;
}
switch(event.getClick()) {
case MIDDLE:
//if(plugin.getConfig().getBoolean("hotkeys.middle-click")) {

View File

@ -1,6 +1,6 @@
main: de.jeffclan.JeffChestSort.JeffChestSortPlugin
name: ChestSort
version: 7.3
version: 7.4-pre3
api-version: 1.13
description: Allows automatic chest sorting
author: mfnalex