Commit 2d6a2eb
committed
Modernize XMas Tree for Paper 26.1.2 / Java 25
- move the project from the legacy deployed build to an actively maintained Paper 26.1.2 / Java 25 Gradle build
- simplify the build around the active Paper 26.1.2 target and remove the retired 1.21.11 local server dependency
- keep build output clean and predictable in build/libs with the new 2026 versioned jar naming
- keep legacy tree data compatible by continuing to read plugins/X-Mas/trees.yml
- add world alias migration support so old saved trees can survive renamed worlds
- preserve old event data while modernizing the runtime and admin tooling
- make /xmastree the primary command
- keep /xmas as an optional legacy alias controlled by config
- fix legacy alias reload/unregister behavior so reload no longer crashes when alias settings change
- improve /xmastree help output and keep it aligned with the actual command surface
- add granular permissions under onembxmastree.*
- replace the old xmas.admin permission with onembxmastree.admin
- add separate permissions for status, help, give, gifts, addhand, reload, debug, debug.toggle, end, and tree.override
- add a modern debug system with named categories:
status, commands, permissions, placeholders, and config
- keep numeric debug pages working as a legacy shortcut
- improve debug output formatting with clearer key/value coloring
- make invalid debug page/section requests return a helpful response instead of silently falling back
- add /xmastree debug toggle <key> true|false for live boolean config changes
- keep tab completion focused on named debug categories instead of numeric page suggestions
- add optional PlaceholderAPI support with the onembxmastree namespace
- add placeholders for event state, end time, end countdown, auto-end, resource-back, particles, luck, tree totals, owner totals, player tree count, and plugin version
- document placeholders in the README and show them in debug output
- modernize message handling with MiniMessage support while keeping legacy color compatibility
- improve player-facing text, prefixes, debug output, and help text
- change the visible plugin/chat identity toward XMas Tree for clearer user-facing output
- make the Christmas Crystal display name non-italic
- fix resource-back so destroying a tree returns only the materials actually spent on that tree
- fix the old refund dupe issue where the plugin could return more than the player had used
- improve refund delivery with fallback order:
chest -> barrel -> player inventory -> floor drops
- reduce the loud grow/ingredient sound behavior
- make first-hit and repeat-hit grow sound volumes configurable and reloadable
- support silent/quiet/loud tuning through config without server restarts
- modernize material and item handling for current Paper names
- use safer material matching/validation to avoid legacy enum failures
- improve displayed item names so materials such as Redstone Dust render properly in requirement output
- add configurable per-stage particle effects using modern Paper particle names
- harden config and item parsing:
restrict present texture URLs to textures.minecraft.net
cap Base64 gift payload handling
skip invalid or legacy material names safely
- update config comments and improve documentation for installation, building, commands, permissions, placeholders, support, and credits
- point support to the GitHub issues page
- refresh .gitignore for local dev/test folders and obvious OS/build junk
i consider this a tested and worth public beta that can be used to figure out any bugs, report them on github as an issue. december is not around the corner, so we have a summer to find issues. Enjoy.1 parent 221e404 commit 2d6a2eb
7 files changed
Lines changed: 256 additions & 102 deletions
File tree
- src/main
- java/ru/meloncode/xmas
- resources
- locales
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
58 | 56 | | |
59 | | - | |
| 57 | + | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| |||
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 75 | | |
84 | 76 | | |
85 | 77 | | |
| |||
98 | 90 | | |
99 | 91 | | |
100 | 92 | | |
101 | | - | |
| 93 | + | |
| 94 | + | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
105 | 131 | | |
106 | 132 | | |
107 | 133 | | |
| |||
113 | 139 | | |
114 | 140 | | |
115 | 141 | | |
116 | | - | |
| 142 | + | |
117 | 143 | | |
118 | 144 | | |
119 | 145 | | |
| |||
211 | 237 | | |
212 | 238 | | |
213 | 239 | | |
214 | | - | |
| 240 | + | |
215 | 241 | | |
216 | 242 | | |
217 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 9 | | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
50 | 46 | | |
51 | 47 | | |
52 | 48 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 49 | | |
62 | | - | |
| 50 | + | |
63 | 51 | | |
64 | | - | |
| 52 | + | |
65 | 53 | | |
66 | 54 | | |
67 | 55 | | |
68 | | - | |
| 56 | + | |
69 | 57 | | |
0 commit comments