SteamWar/FightSystem
Archiviert
13
1

Update Config
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-06-07 15:02:44 +02:00
Ursprung bd4696429d
Commit 2263cdd4b4
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -173,7 +173,6 @@ public class Config {
GroundWalkable = config.getBoolean("Arena.GroundWalkable", true); GroundWalkable = config.getBoolean("Arena.GroundWalkable", true);
DisableSnowMelt = config.getBoolean("Arena.DisableSnowMelt", false); DisableSnowMelt = config.getBoolean("Arena.DisableSnowMelt", false);
ArenaLeaveable = config.getBoolean("Arena.Leaveable", false); ArenaLeaveable = config.getBoolean("Arena.Leaveable", false);
AllowMissiles = config.getBoolean("Arena.AllowMissiles", false);
int schemsizeX = config.getInt("Schematic.Size.x"); int schemsizeX = config.getInt("Schematic.Size.x");
int schemsizeY = config.getInt("Schematic.Size.y"); int schemsizeY = config.getInt("Schematic.Size.y");
@ -196,6 +195,7 @@ public class Config {
PercentBlocks = Collections.unmodifiableSet(config.getStringList("WinConditionParams.Blocks").stream().map(Material::valueOf).collect(Collectors.toSet())); PercentBlocks = Collections.unmodifiableSet(config.getStringList("WinConditionParams.Blocks").stream().map(Material::valueOf).collect(Collectors.toSet()));
EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages")); EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages"));
AllowMissiles = config.getBoolean("Arena.AllowMissiles", EnterStages.isEmpty());
KitFile = config.getString("Kits.File", "kits.yml"); KitFile = config.getString("Kits.File", "kits.yml");
MemberDefault = config.getString("Kits.MemberDefault", "default"); MemberDefault = config.getString("Kits.MemberDefault", "default");

Datei anzeigen

@ -36,8 +36,8 @@ public class PistonListener implements Listener {
public PistonListener() { public PistonListener() {
//Wenn Entern aktiv ist, sollen Raketen etc. entern können //Wenn Entern aktiv ist, sollen Raketen etc. entern können
if(!ArenaMode.Check.contains(Config.mode)) { if(!ArenaMode.Check.contains(Config.mode)) {
new StateDependentListener(Config.EnterStages.isEmpty() || Config.AllowMissiles, FightState.All, this); new StateDependentListener(!Config.AllowMissiles, FightState.All, this);
new StateDependentListener(!(Config.EnterStages.isEmpty() || Config.AllowMissiles), FightState.Setup, this); new StateDependentListener(Config.AllowMissiles, FightState.Setup, this);
} }
} }