From 794be6cdf9e60511b79684e5e006a81ccc43443c Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Mon, 27 Dec 2021 13:11:09 +0100 Subject: [PATCH] DebugstickBauGuiItem --- BauSystem_Main/src/BauSystem.properties | 1 + .../bausystem/features/util/items/DebugstickBauGuiItem.java | 3 ++- build.gradle | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/BauSystem.properties b/BauSystem_Main/src/BauSystem.properties index 133603dc..ffd06e23 100644 --- a/BauSystem_Main/src/BauSystem.properties +++ b/BauSystem_Main/src/BauSystem.properties @@ -851,6 +851,7 @@ OTHER_TPS_SINGLE = §8TPS: §e{0} OTHER_WORLDSPAWN_HELP=§8/§eworldspawn §8-§e Teleportiere dich zum Spawn # DebugStick DEBUG-STICK_COMMAND_HELP=§8/§edebugstick §8-§7 Erhalte einen DebugStick +DEBUG-STICK_NAME=DEBUGSTIC # StructureVoid STRUCTURE-VOID_COMMAND_HELP=§8/§estructureVoid §8-§7 Erhalte ein StructureVoid # NightVision diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/DebugstickBauGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/DebugstickBauGuiItem.java index 8915dceb..8b78101e 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/DebugstickBauGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/items/DebugstickBauGuiItem.java @@ -19,6 +19,7 @@ package de.steamwar.bausystem.features.util.items; +import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.Permission; import de.steamwar.bausystem.config.ColorConfig; import de.steamwar.bausystem.linkage.specific.BauGuiItem; @@ -39,7 +40,7 @@ public class DebugstickBauGuiItem extends BauGuiItem { @Override public ItemStack getItem(Player player) { - return new SWItem(Material.DEBUG_STICK, ColorConfig.HIGHLIGHT + "Debugstick").getItemStack(); + return new SWItem(Material.DEBUG_STICK, ColorConfig.HIGHLIGHT + BauSystem.MESSAGE.parse("DEBUG-STICK_NAME", player)).getItemStack(); } @Override diff --git a/build.gradle b/build.gradle index 0392b342..d084a399 100644 --- a/build.gradle +++ b/build.gradle @@ -150,7 +150,7 @@ private def await(Process proc) { } private def shell(String command) { - if (operatingSystem == "unix") { + if (operatingSystem == "unix" && false) { return ['bash', '-c', command].execute() } else { return ["cmd", "/c", command].execute()