Ignore Public Only rule (for historic gamemodes)
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
d02ede97e0
Commit
3c4d5123da
@ -61,6 +61,7 @@ public class Config {
|
|||||||
|
|
||||||
//schematic parameter
|
//schematic parameter
|
||||||
public static final boolean OnlyPublicSchematics;
|
public static final boolean OnlyPublicSchematics;
|
||||||
|
public static final boolean IgnorePublicOnly;
|
||||||
public static final de.steamwar.sql.SchematicType SchematicType;
|
public static final de.steamwar.sql.SchematicType SchematicType;
|
||||||
public static final boolean TeamRedRotate;
|
public static final boolean TeamRedRotate;
|
||||||
public static final boolean TeamBlueRotate;
|
public static final boolean TeamBlueRotate;
|
||||||
@ -149,6 +150,7 @@ public class Config {
|
|||||||
WaterDepth = worldconfig.getInt("Arena.WaterDepth");
|
WaterDepth = worldconfig.getInt("Arena.WaterDepth");
|
||||||
|
|
||||||
SchematicType = de.steamwar.sql.SchematicType.fromDB(config.getString("Schematic.SchematicType"));
|
SchematicType = de.steamwar.sql.SchematicType.fromDB(config.getString("Schematic.SchematicType"));
|
||||||
|
IgnorePublicOnly = config.getBoolean("Schematic.IgnorePublicOnly");
|
||||||
boolean rotate = config.getBoolean("Schematic.Rotate");
|
boolean rotate = config.getBoolean("Schematic.Rotate");
|
||||||
ReplaceObsidian = config.getBoolean("Schematic.ReplaceObsidian");
|
ReplaceObsidian = config.getBoolean("Schematic.ReplaceObsidian");
|
||||||
ReplaceBedrock = config.getBoolean("Schematic.ReplaceBedrock");
|
ReplaceBedrock = config.getBoolean("Schematic.ReplaceBedrock");
|
||||||
|
@ -114,6 +114,16 @@ public class Fight {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void calcAvailibleSchemTypes() {
|
public static void calcAvailibleSchemTypes() {
|
||||||
|
if(Config.IgnorePublicOnly){
|
||||||
|
onlyPublicSchems = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(Config.OnlyPublicSchematics){
|
||||||
|
onlyPublicSchems = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(redTeam.getLeader() == null || redTeam.getLeader().getPlayer() == null ||
|
if(redTeam.getLeader() == null || redTeam.getLeader().getPlayer() == null ||
|
||||||
blueTeam.getLeader() == null || blueTeam.getLeader().getPlayer() == null){
|
blueTeam.getLeader() == null || blueTeam.getLeader().getPlayer() == null){
|
||||||
onlyPublicSchems = false;
|
onlyPublicSchems = false;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren