mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
Fixes #3064
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user