diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/other/SlotCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/other/SlotCommand.java index 1ba52c4b..0adb7f86 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/other/SlotCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/other/SlotCommand.java @@ -41,7 +41,7 @@ public class SlotCommand extends SWCommand { } @Register(help = true) - public void genericHelp(Player p) { + public void genericHelp(Player p, String... args) { BauSystem.MESSAGE.send("OTHER_NOCLIP_SLOT_INFO", p); } 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 2eb7947e..e7c1c857 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/CustomCommandListener.java @@ -245,14 +245,16 @@ public class CustomCommandListener implements Listener { }); int length = (int) output(p).toYAPION(new LengthOutput()).getLength(); StringBuilder menuName = new StringBuilder(); - menuName.append("§eScript Commands"); - if (length > 58982) { - if (length == 655336) { - menuName.append(" §8(§cVoll§8)"); - } else { - menuName.append(" §8(§6Fast Voll§8)"); - } + menuName.append("§eScript Commands "); + double percentage = ((int) ((length / 655336.0) * 1000)) / 10.0; + if (percentage > 99) { + menuName.append("§c"); + } else if (percentage >= 75) { + menuName.append("§6"); + } else { + menuName.append("§a"); } + menuName.append(percentage).append("§7%"); SWListInv menuCommandSWListInv = new SWListInv<>(p, menuName.toString(), false, menuCommands, (clickType, menuCommand) -> { if (!clickType.isCreativeAction()) { playerMap.get(p).removeIf(customCommand -> customCommand == menuCommand);