Dieser Commit ist enthalten in:
Ursprung
9faa238f7d
Commit
fa9f5792ea
@ -737,6 +737,9 @@ NIGHT_VISION_OFF=§eNightvision deactivated
|
|||||||
NIGHT_VISION_ON=§eNightvision activated
|
NIGHT_VISION_ON=§eNightvision activated
|
||||||
NIGHT_VISION_ITEM_ON = §7Nightvision: §eActivated
|
NIGHT_VISION_ITEM_ON = §7Nightvision: §eActivated
|
||||||
NIGHT_VISION_ITEM_OFF = §7Nightvision: §eDeactivated
|
NIGHT_VISION_ITEM_OFF = §7Nightvision: §eDeactivated
|
||||||
|
#Autodust
|
||||||
|
AUTODUST_ENABLE=§eAutodust was enabled.
|
||||||
|
AUTODUST_DISABLE=§eAutodust was disabled.
|
||||||
|
|
||||||
#Navigation Wand
|
#Navigation Wand
|
||||||
NAVIGATION_WAND=§eNavigation Wand
|
NAVIGATION_WAND=§eNavigation Wand
|
||||||
|
@ -702,6 +702,9 @@ NIGHT_VISION_OFF=§eNightvision deaktiviert
|
|||||||
NIGHT_VISION_ON=§eNightvision aktiviert
|
NIGHT_VISION_ON=§eNightvision aktiviert
|
||||||
NIGHT_VISION_ITEM_ON = §7Nightvision: §eAktiviert
|
NIGHT_VISION_ITEM_ON = §7Nightvision: §eAktiviert
|
||||||
NIGHT_VISION_ITEM_OFF = §7Nightvision: §eDeaktiviert
|
NIGHT_VISION_ITEM_OFF = §7Nightvision: §eDeaktiviert
|
||||||
|
#Autodust
|
||||||
|
AUTODUST_ENABLE=§eAutodust wurde aktiviert.
|
||||||
|
AUTODUST_DISABLE=§eAutodust wurde deaktiviert.
|
||||||
|
|
||||||
#Navigation Wand
|
#Navigation Wand
|
||||||
NAVIGATION_WAND=§eNavigation Wand
|
NAVIGATION_WAND=§eNavigation Wand
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.features.autodust;
|
package de.steamwar.bausystem.features.autodust;
|
||||||
|
|
||||||
|
import de.steamwar.bausystem.BauSystem;
|
||||||
import de.steamwar.bausystem.configplayer.Config;
|
import de.steamwar.bausystem.configplayer.Config;
|
||||||
import de.steamwar.command.SWCommand;
|
import de.steamwar.command.SWCommand;
|
||||||
import de.steamwar.linkage.Linked;
|
import de.steamwar.linkage.Linked;
|
||||||
@ -48,6 +49,12 @@ public class AutoDustCommand extends SWCommand implements Listener {
|
|||||||
public void genericCommand(Player p) {
|
public void genericCommand(Player p) {
|
||||||
boolean autoDust = Config.getInstance().get(p).getPlainValueOrDefault("autodust", false);
|
boolean autoDust = Config.getInstance().get(p).getPlainValueOrDefault("autodust", false);
|
||||||
Config.getInstance().get(p).put("autodust", !autoDust);
|
Config.getInstance().get(p).put("autodust", !autoDust);
|
||||||
|
|
||||||
|
if(!autoDust) {
|
||||||
|
BauSystem.MESSAGE.send("AUTODUST_ENABLE",p);
|
||||||
|
}else {
|
||||||
|
BauSystem.MESSAGE.send("AUTODUST_DISABLE",p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren