File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
src/main/java/world/bentobox/boxed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ public class Settings implements WorldSettings {
86
86
@ ConfigComment ("Other plugins may override this setting" )
87
87
@ ConfigEntry (path = "world.difficulty" )
88
88
private Difficulty difficulty = Difficulty .NORMAL ;
89
+
90
+ @ ConfigComment ("Allow structures to generate in the seed world" )
91
+ @ ConfigEntry (path = "world.allow-structures" )
92
+ private boolean allowStructures ;
89
93
90
94
@ ConfigComment ("Spawn limits. These override the limits set in bukkit.yml" )
91
95
@ ConfigComment ("If set to a negative number, the server defaults will be used" )
@@ -1801,4 +1805,15 @@ public void setDisallowTeamMemberIslands(boolean disallowTeamMemberIslands) {
1801
1805
this .disallowTeamMemberIslands = disallowTeamMemberIslands ;
1802
1806
}
1803
1807
1808
+ public boolean isAllowStructures () {
1809
+ return allowStructures ;
1810
+ }
1811
+
1812
+ /**
1813
+ * @param allowStructures the allowStructures to set
1814
+ */
1815
+ public void setAllowStructures (boolean allowStructures ) {
1816
+ this .allowStructures = allowStructures ;
1817
+ }
1818
+
1804
1819
}
Original file line number Diff line number Diff line change @@ -136,8 +136,7 @@ public boolean shouldGenerateMobs() {
136
136
137
137
@ Override
138
138
public boolean shouldGenerateStructures () {
139
- return false ;
140
- //return this.addon.getSettings().isAllowStructures();
139
+ return this .addon .getSettings ().isAllowStructures ();
141
140
}
142
141
143
142
}
You can’t perform that action at this time.
0 commit comments