From fa9f5792eabdbc7dd833744b4025724ce59ffb67 Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Sat, 7 Oct 2023 17:04:47 +0200 Subject: [PATCH] Message --- BauSystem_Main/src/BauSystem.properties | 3 +++ BauSystem_Main/src/BauSystem_de.properties | 3 +++ .../bausystem/features/autodust/AutoDustCommand.java | 7 +++++++ 3 files changed, 13 insertions(+) diff --git a/BauSystem_Main/src/BauSystem.properties b/BauSystem_Main/src/BauSystem.properties index c50219a1..e12aac4f 100644 --- a/BauSystem_Main/src/BauSystem.properties +++ b/BauSystem_Main/src/BauSystem.properties @@ -737,6 +737,9 @@ NIGHT_VISION_OFF=§eNightvision deactivated NIGHT_VISION_ON=§eNightvision activated NIGHT_VISION_ITEM_ON = §7Nightvision: §eActivated NIGHT_VISION_ITEM_OFF = §7Nightvision: §eDeactivated +#Autodust +AUTODUST_ENABLE=§eAutodust was enabled. +AUTODUST_DISABLE=§eAutodust was disabled. #Navigation Wand NAVIGATION_WAND=§eNavigation Wand diff --git a/BauSystem_Main/src/BauSystem_de.properties b/BauSystem_Main/src/BauSystem_de.properties index 4bc55737..6a2496ea 100644 --- a/BauSystem_Main/src/BauSystem_de.properties +++ b/BauSystem_Main/src/BauSystem_de.properties @@ -702,6 +702,9 @@ NIGHT_VISION_OFF=§eNightvision deaktiviert NIGHT_VISION_ON=§eNightvision aktiviert NIGHT_VISION_ITEM_ON = §7Nightvision: §eAktiviert NIGHT_VISION_ITEM_OFF = §7Nightvision: §eDeaktiviert +#Autodust +AUTODUST_ENABLE=§eAutodust wurde aktiviert. +AUTODUST_DISABLE=§eAutodust wurde deaktiviert. #Navigation Wand NAVIGATION_WAND=§eNavigation Wand diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/autodust/AutoDustCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/autodust/AutoDustCommand.java index 854ee495..bf3d2086 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/autodust/AutoDustCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/autodust/AutoDustCommand.java @@ -19,6 +19,7 @@ package de.steamwar.bausystem.features.autodust; +import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.configplayer.Config; import de.steamwar.command.SWCommand; import de.steamwar.linkage.Linked; @@ -48,6 +49,12 @@ public class AutoDustCommand extends SWCommand implements Listener { public void genericCommand(Player p) { boolean autoDust = Config.getInstance().get(p).getPlainValueOrDefault("autodust", false); Config.getInstance().get(p).put("autodust", !autoDust); + + if(!autoDust) { + BauSystem.MESSAGE.send("AUTODUST_ENABLE",p); + }else { + BauSystem.MESSAGE.send("AUTODUST_DISABLE",p); + } } @EventHandler