We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a0daf5 commit 420b785Copy full SHA for 420b785
core/src/main/java/com/clubobsidian/dynamicgui/core/gui/SimpleGui.java
@@ -100,12 +100,7 @@ public InventoryWrapper<?> buildInventory(@NotNull PlayerWrapper<?> playerWrappe
100
}
101
102
private String formatTitle(PlayerWrapper<?> playerWrapper) {
103
- String inventoryTitle = ReplacerManager.get().replace(this.title, playerWrapper);
104
- String stripped = ChatColor.stripColor(inventoryTitle);
105
- if (stripped.length() > 32) {
106
- inventoryTitle = inventoryTitle.substring(0, 31 + (inventoryTitle.length() - stripped.length()));
107
- }
108
- return inventoryTitle;
+ return ReplacerManager.get().replace(this.title, playerWrapper);
109
110
111
private Object createInventory(String inventoryTitle) {
0 commit comments