mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-30 20:29:18 +00:00
Allow setting the sound of a region via /rpgr setsound
This commit is contained in:
@@ -46,15 +46,14 @@ public class ConfiguredRegion {
|
||||
private String id;
|
||||
private String customName;
|
||||
private final List<DiscoveryReward> rewards;
|
||||
@NeedsGUI private String sound;
|
||||
private String sound;
|
||||
private String icon;
|
||||
private int iconModel;
|
||||
private int undiscoveredIconModel;
|
||||
private String undiscoveredIcon;
|
||||
private final List<IconCommand> iconCommand;
|
||||
private boolean showCoords;
|
||||
@EditableField(material = Material.ENDER_PEARL, name = "Set teleport location", description = "Set the teleport location to your current location")
|
||||
@NeedsGUI private Location location;
|
||||
private Location location;
|
||||
@NeedsGUI private final List<String> hints;
|
||||
private boolean showHint;
|
||||
private boolean teleportable;
|
||||
@@ -141,9 +140,12 @@ public class ConfiguredRegion {
|
||||
return rewards;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public String getSoundName() {
|
||||
return sound;
|
||||
public Optional<String> getSoundName() {
|
||||
return Optional.ofNullable(sound);
|
||||
}
|
||||
|
||||
public void setSoundName(String sound) {
|
||||
this.sound = sound;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user