Add Constants.sneaking
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
6a86a3cf3b
Commit
cead428b7a
@ -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() {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren