Skip to content

Commit

Permalink
made the default island name to be displayed configurable (#804)
Browse files Browse the repository at this point in the history
* made the default island name to be displayed configurable

I have not tested this...

* Update src/main/java/com/iridium/iridiumskyblock/database/Island.java

---------

Co-authored-by: Peaches_MLG <PeachesMLG100@gmail.com>
  • Loading branch information
Faun471 and PeachesMLG authored Feb 11, 2024
1 parent e0cd1f6 commit 8367215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public Configuration() {
.build();
}

public String defaultIslandName = "%owner%'s Island";
public String islandCreateTitle = "&9&lIsland Created";
public String islandCreateSubTitle = "&7IridiumSkyblock by Peaches_MLG";
public String defaultDescription = "Default island description :c";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ public void setColor(Color color) {
.findFirst()
.map(User::getName)
.orElse("N/A");
return ownerName + "'s Island";
return IridiumSkyblock.getInstance().getConfiguration().defaultIslandName.replace("%owner%", ownerName);
}
}

0 comments on commit 8367215

Please sign in to comment.