From 33e070bc43f3b39e4144c37187482ac70b456eb9 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 23 Sep 2023 14:39:56 +0200 Subject: [PATCH] Finalize BindCommand Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/features/util/BindCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/BindCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/BindCommand.java index cb4a4ba2..ab213c83 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/BindCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/BindCommand.java @@ -77,11 +77,11 @@ public class BindCommand extends SWCommand implements Listener { if (command.length != 0) { String commandText = String.join(" ", command); meta.getPersistentDataContainer().set(KEY, PersistentDataType.STRING, commandText); - meta.setLore(Collections.singletonList(BauSystem.MESSAGE.parse("OTHER_BIND_LORE", player, commandText))); + meta.setDisplayName(BauSystem.MESSAGE.parse("OTHER_BIND_LORE", player, commandText)); BauSystem.MESSAGE.send("OTHER_BIND_MESSAGE_BIND", player, commandText); } else { meta.getPersistentDataContainer().remove(KEY); - meta.setLore(Collections.emptyList()); + meta.setDisplayName(null); BauSystem.MESSAGE.send("OTHER_BIND_MESSAGE_UNBIND", player); } item.setItemMeta(meta);