This commit is contained in:
NotMyFault
2021-05-21 19:14:13 +02:00
parent 93ff778de0
commit cde27899dd
2 changed files with 27 additions and 22 deletions

View File

@ -154,6 +154,7 @@ public abstract class PlotArea {
private CuboidRegion region;
private ConcurrentHashMap<String, Object> meta;
private QuadMap<PlotCluster> clusters;
private String signMaterial = "OAK_WALL_SIGN";
public PlotArea(
final @NonNull String worldName, final @Nullable String id,
@ -324,6 +325,7 @@ public abstract class PlotArea {
this.mobSpawnerSpawning = config.getBoolean("mob_spawner_spawning");
this.autoMerge = config.getBoolean("plot.auto_merge");
this.allowSigns = config.getBoolean("plot.create_signs");
this.signMaterial = config.getString("plot.sign_material");
String biomeString = config.getString("plot.biome");
if (!biomeString.startsWith("minecraft:")) {
biomeString = "minecraft:" + biomeString;
@ -484,6 +486,7 @@ public abstract class PlotArea {
options.put("mob_spawner_spawning", this.isMobSpawnerSpawning());
options.put("plot.auto_merge", this.isAutoMerge());
options.put("plot.create_signs", this.allowSigns());
options.put("plot.sign_material", this.signMaterial());
options.put("plot.biome", "minecraft:forest");
options.put("schematic.on_claim", this.isSchematicOnClaim());
options.put("schematic.file", this.getSchematicFile());
@ -1160,6 +1163,15 @@ public abstract class PlotArea {
return allowSigns;
}
/**
* Get the plot sign material.
*
* @return the sign material.
*/
public String signMaterial() {
return signMaterial;
}
/**
* Get the value associated with the specified flag. This will look at
* the default values stored in {@link GlobalFlagContainer}.
@ -1278,6 +1290,10 @@ public abstract class PlotArea {
return this.spawnEggs;
}
public String getSignMaterial() {
return this.signMaterial;
}
public boolean isSpawnCustom() {
return this.spawnCustom;
}