SteamWar/FightSystem
Archiviert
13
1

Unlimited preparation phase option #387

Zusammengeführt
Lixfel hat 1 Commits von unlimitedPrepare nach master 2023-04-11 11:04:35 +02:00 zusammengeführt
3 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -72,6 +72,8 @@ Schematic:
ReplaceObsidianBedrock: false # defaults to false if missing ReplaceObsidianBedrock: false # defaults to false if missing
# If the replacement should happen with block updates # If the replacement should happen with block updates
ReplaceWithBlockupdates: false # defaults to false if missing ReplaceWithBlockupdates: false # defaults to false if missing
# If the schematic perparation arena mode is time limited
UnlimitedPrepare: false # defaults to false if missing
# Maximal amount of blocks allowed in the schematic # Maximal amount of blocks allowed in the schematic
MaxBlocks: 0 # defaults to 0 (ignored) if missing MaxBlocks: 0 # defaults to 0 (ignored) if missing
# Maximal amount of items per dispenser # Maximal amount of items per dispenser

Datei anzeigen

@ -88,6 +88,7 @@ public class Config {
public static final boolean PasteAligned; public static final boolean PasteAligned;
public static final boolean ReplaceObsidianBedrock; public static final boolean ReplaceObsidianBedrock;
public static final boolean ReplaceWithBlockupdates; public static final boolean ReplaceWithBlockupdates;
public static final boolean UnlimitedPrepare;
//team parameter //team parameter
public static final String TeamRedName; public static final String TeamRedName;
@ -185,6 +186,7 @@ public class Config {
PasteAligned = config.getBoolean("Schematic.PasteAligned", false); PasteAligned = config.getBoolean("Schematic.PasteAligned", false);
ReplaceObsidianBedrock = config.getBoolean("Schematic.ReplaceObsidianBedrock", false); ReplaceObsidianBedrock = config.getBoolean("Schematic.ReplaceObsidianBedrock", false);
ReplaceWithBlockupdates = config.getBoolean("Schematic.ReplaceWithBlockupdates", false); ReplaceWithBlockupdates = config.getBoolean("Schematic.ReplaceWithBlockupdates", false);
UnlimitedPrepare = config.getBoolean("Schematic.UnlimitedPrepare", false);
GameName = config.getString("GameName", "WarGear"); GameName = config.getString("GameName", "WarGear");
TeamChatDetection = config.getString("TeamChatPrefix", "+"); TeamChatDetection = config.getString("TeamChatPrefix", "+");

Datei anzeigen

@ -29,6 +29,9 @@ public class PostSchemCountdown extends Countdown {
public PostSchemCountdown() { public PostSchemCountdown() {
super(Config.SetupDuration, new Message("POST_SCHEM_COUNTDOWN"), null, false); super(Config.SetupDuration, new Message("POST_SCHEM_COUNTDOWN"), null, false);
if(Config.mode == ArenaMode.PREPARE && Config.UnlimitedPrepare)
return;
new StateDependentCountdown(ArenaMode.SeriousFight, FightState.PostSchemSetup, this); new StateDependentCountdown(ArenaMode.SeriousFight, FightState.PostSchemSetup, this);
} }