We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51477aa commit 8ba85e1Copy full SHA for 8ba85e1
1 file changed
src/main/java/com/mohistmc/api/gui/DemoGUI.java
@@ -6,6 +6,7 @@
6
import org.bukkit.Material;
7
import org.bukkit.entity.Player;
8
import org.bukkit.event.inventory.ClickType;
9
+import org.bukkit.event.inventory.InventoryCloseEvent;
10
import org.bukkit.inventory.ItemStack;
11
12
public class DemoGUI {
@@ -32,7 +33,9 @@ public DemoGUI(String name) {
32
33
.toItemStack()) {
34
@Override
35
public void ClickAction(ClickType type, Player u, ItemStack itemStack) {
- u.closeInventory();
36
+ if (!type.isShiftClick() && type.isLeftClick()) {
37
+ u.closeInventory();
38
+ }
39
}
40
});
41
0 commit comments