From 4654c5896596b435fcb8740fed0b026933720a39 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 24 Aug 2021 19:34:21 +0200 Subject: [PATCH] Fix CustomCommandListener Signed-off-by: yoyosource --- .../bausystem/features/script/CustomCommandListener.java | 1 + yapion/prototypes4.yapion | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java index 2eff813d..69702fe4 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java @@ -298,6 +298,7 @@ public class CustomCommandListener implements Listener { if (!save(p)) { playerMap.get(p).removeIf(customCommand -> customCommand == menuCommand); p.closeInventory(); + SWUtils.giveItemToPlayer(p, p.getItemOnCursor()); save(p); p.sendMessage("§cScript CMD-Buch Limit erreicht"); return; diff --git a/yapion/prototypes4.yapion b/yapion/prototypes4.yapion index c675ab3c..55bb006c 100644 --- a/yapion/prototypes4.yapion +++ b/yapion/prototypes4.yapion @@ -129,7 +129,7 @@ sizeX(115) sizeY(45) sizeZ(65) - offsetX(6) + offsetX(3) offsetY(10) offsetZ(6) }