Adds missing spacing when replacing underscores in book names
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
This commit is contained in:
@@ -228,7 +228,7 @@ public final class BookFileHelper {
|
||||
@NotNull
|
||||
private static String getNiceName(@NotNull String bookPath) {
|
||||
bookPath = ChatColor.translateAlternateColorCodes('&', bookPath.substring(0, bookPath.length() - 4))
|
||||
.replace("_", "");
|
||||
.replace("_", " ");
|
||||
String[] parts = bookPath.split(",");
|
||||
return parts[0] + ChatColor.RESET + " by " + parts[1] + ChatColor.RESET;
|
||||
}
|
||||
|
Reference in New Issue
Block a user