Repository navigation
Commit 43cb76a
authored
Fix MiniMessage and color formatting in disposal GUI title (#6616)
### Information
This PR fixes #6606.
### Details
**Proposed fix:**
Passes the localized `disposal` string through
`AdventureFacet#miniToLegacy` before creating the chest inventory view
in both `Commanddisposal.java` and `SignDisposal.java`. This ensures
both legacy formatting codes (`&a&l`) and Adventure/MiniMessage tags
(`<green><bold>`) parse and render correctly in the inventory title bar.
**Environments tested:**
OS: Windows 11
Java version: Java 21
- [x] Most recent Paper version (26.2)
- [ ] CraftBukkit/Spigot/Paper 1.12.2
- [ ] CraftBukkit 1.8.8
**Demonstration:**
<img width="554" height="76" alt="image"
src="https://github.com/user-attachments/assets/6bb5b6a2-2a7b-4cf8-8d54-15776e63e2dd"
/>
<img width="388" height="223" alt="image"
src="https://github.com/user-attachments/assets/bc8f5dee-9faa-4a03-937e-37d64a283e4c"
/>1 parent 4600c72 commit 43cb76a
2 files changed
Lines changed: 4 additions & 5 deletions
File tree
- Essentials/src/main/java/com/earth2me/essentials
- commands
- signs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
0 commit comments