From cead428b7a390fd65d1b6cd20695980646128722 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 10 Jul 2021 15:45:38 +0200 Subject: [PATCH] Add Constants.sneaking Signed-off-by: yoyosource --- .../bausystem/features/script/variables/Constants.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/script/variables/Constants.java b/BauSystem_Main/src/de/steamwar/bausystem/features/script/variables/Constants.java index 03312728..ae7740bc 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/script/variables/Constants.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/script/variables/Constants.java @@ -1,6 +1,5 @@ package de.steamwar.bausystem.features.script.variables; -import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.features.tracer.record.RecordStateMachine; import de.steamwar.bausystem.region.Region; import de.steamwar.bausystem.region.flags.Flag; @@ -48,6 +47,9 @@ public class Constants { CONSTANTS.put("name", player -> { return new Value.StringValue(player.getDisplayName()); }); + CONSTANTS.put("sneaking", player -> { + return new Value.BooleanValue(player.isSneaking()); + }); } public Set allVariables() {