Skip to content

Commit

Permalink
Don't strip title length
Browse files Browse the repository at this point in the history
Newer versions don't enforce a title limit
  • Loading branch information
virustotalop committed Jan 21, 2025
1 parent 5a0daf5 commit 420b785
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ public InventoryWrapper<?> buildInventory(@NotNull PlayerWrapper<?> playerWrappe
}

private String formatTitle(PlayerWrapper<?> playerWrapper) {
String inventoryTitle = ReplacerManager.get().replace(this.title, playerWrapper);
String stripped = ChatColor.stripColor(inventoryTitle);
if (stripped.length() > 32) {
inventoryTitle = inventoryTitle.substring(0, 31 + (inventoryTitle.length() - stripped.length()));
}
return inventoryTitle;
return ReplacerManager.get().replace(this.title, playerWrapper);
}

private Object createInventory(String inventoryTitle) {
Expand Down

0 comments on commit 420b785

Please sign in to comment.