SteamWar/BauSystem2.0
Archiviert
12
0

Add Constants.sneaking

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-07-10 15:45:38 +02:00
Ursprung 6a86a3cf3b
Commit cead428b7a

Datei anzeigen

@ -1,6 +1,5 @@
package de.steamwar.bausystem.features.script.variables; package de.steamwar.bausystem.features.script.variables;
import de.steamwar.bausystem.BauSystem;
import de.steamwar.bausystem.features.tracer.record.RecordStateMachine; import de.steamwar.bausystem.features.tracer.record.RecordStateMachine;
import de.steamwar.bausystem.region.Region; import de.steamwar.bausystem.region.Region;
import de.steamwar.bausystem.region.flags.Flag; import de.steamwar.bausystem.region.flags.Flag;
@ -48,6 +47,9 @@ public class Constants {
CONSTANTS.put("name", player -> { CONSTANTS.put("name", player -> {
return new Value.StringValue(player.getDisplayName()); return new Value.StringValue(player.getDisplayName());
}); });
CONSTANTS.put("sneaking", player -> {
return new Value.BooleanValue(player.isSneaking());
});
} }
public Set<String> allVariables() { public Set<String> allVariables() {