Dieser Commit ist enthalten in:
Ursprung
bd4696429d
Commit
2263cdd4b4
@ -173,7 +173,6 @@ public class Config {
|
||||
GroundWalkable = config.getBoolean("Arena.GroundWalkable", true);
|
||||
DisableSnowMelt = config.getBoolean("Arena.DisableSnowMelt", false);
|
||||
ArenaLeaveable = config.getBoolean("Arena.Leaveable", false);
|
||||
AllowMissiles = config.getBoolean("Arena.AllowMissiles", false);
|
||||
|
||||
int schemsizeX = config.getInt("Schematic.Size.x");
|
||||
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()));
|
||||
|
||||
EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages"));
|
||||
AllowMissiles = config.getBoolean("Arena.AllowMissiles", EnterStages.isEmpty());
|
||||
|
||||
KitFile = config.getString("Kits.File", "kits.yml");
|
||||
MemberDefault = config.getString("Kits.MemberDefault", "default");
|
||||
|
@ -36,8 +36,8 @@ public class PistonListener implements Listener {
|
||||
public PistonListener() {
|
||||
//Wenn Entern aktiv ist, sollen Raketen etc. entern können
|
||||
if(!ArenaMode.Check.contains(Config.mode)) {
|
||||
new StateDependentListener(Config.EnterStages.isEmpty() || Config.AllowMissiles, FightState.All, this);
|
||||
new StateDependentListener(!(Config.EnterStages.isEmpty() || Config.AllowMissiles), FightState.Setup, this);
|
||||
new StateDependentListener(!Config.AllowMissiles, FightState.All, this);
|
||||
new StateDependentListener(Config.AllowMissiles, FightState.Setup, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren