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