Commits

Christopher Bohn authored and md_5 committed 768d7fc2df2
#773: Add method to get max world size
No tags

src/main/java/org/bukkit/craftbukkit/CraftServer.java

Modified
608 608 @Override
609 609 public String getWorldType() {
610 610 return this.getProperties().properties.getProperty("level-type");
611 611 }
612 612
613 613 @Override
614 614 public boolean getGenerateStructures() {
615 615 return this.getProperties().generatorSettings.shouldGenerateMapFeatures();
616 616 }
617 617
618 + @Override
619 + public int getMaxWorldSize() {
620 + return this.getProperties().maxWorldSize;
621 + }
622 +
618 623 @Override
619 624 public boolean getAllowEnd() {
620 625 return this.configuration.getBoolean("settings.allow-end");
621 626 }
622 627
623 628 @Override
624 629 public boolean getAllowNether() {
625 630 return this.getServer().getAllowNether();
626 631 }
627 632

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut