9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-29 19:59:11 +00:00

Add automatic Lands region generation

This commit is contained in:
SamB440
2022-05-28 21:13:40 +01:00
parent d1759ba964
commit 0009c8705e
5 changed files with 133 additions and 2 deletions

View File

@@ -39,8 +39,8 @@ import java.util.stream.Stream;
public class ConfiguredRegion {
private final UUID world;
private final String id;
private UUID world;
private String id;
private String customName;
private final List<DiscoveryReward> rewards;
@NeedsGUI private Sound sound;
@@ -114,6 +114,11 @@ public class ConfiguredRegion {
return id;
}
@Deprecated //todo find better way to do this (templates)
public void setId(String id) {
this.id = id;
}
public String getCustomName() {
return customName;
}
@@ -193,6 +198,11 @@ public class ConfiguredRegion {
return Bukkit.getWorld(world);
}
@Deprecated //todo find better way to do this (templates)
public void setWorld(UUID world) {
this.world = world;
}
public boolean isDiscoverable() {
return discoverable;
}