Commit graph

730 commits

Author SHA1 Message Date
13b7e73d8c
Excellent enchants compatibility (#34)
Add compatibility with
[ExcellentEnchants](https://www.spigotmc.org/resources/excellentenchants-%E2%AD%90-75-vanilla-like-enchantments.61693/)
2024-10-15 08:27:26 +02:00
7c283dc7f8
Splitted main logic to be more readable 2024-10-15 06:46:05 +02:00
7029254526
Improve registry and config (#33)
Use namespace instead of name to identify enchantments
2024-10-04 22:57:09 +02:00
a00bb919f4
Add merge level limit (#32)
Add merge level limit (aka "max before merge" or "disable merge over")
2024-10-04 16:55:55 +02:00
a915d5ad80 Compatibility with most plugin using wesjd anvil gui 2024-09-22 20:12:56 +02:00
74a211bc88
Update default configs 2024-09-18 12:47:30 +02:00
f4f467f6fe
Fix 1.21 config being wrong:
fix 1.21 config updater and automatically repair previously broken config version:
- Allow 1.21 enchantment in enchantment book
- Add unit repair of mace with breeze rod

Also version up
2024-09-18 12:46:11 +02:00
14fd247b0b
Update README.md 2024-09-15 00:32:54 +02:00
00e542ec8c
Update issue templates 2024-09-14 17:58:44 +02:00
f4c6e724d4
Update README.md 2024-09-14 17:20:28 +02:00
9aef871241
1.6.1 (#29)
- Fixed "chose enchantments of conflict" gui back button not leading to previous gui
- Tried to make list guis pretiers
- Better default item and book cost on paper
- Fix custom craft exact count button not working
- Add work penalty type (Future version may allow custom penalty type)
- Experimental Folia support
- Compatibility with [Disenchantment](https://www.spigotmc.org/resources/disenchantment-1-21-1-1-20-6-new-book-splitting-mechanics.110741/) 5.4.0 (but break compatibility with version under 5.4.0)
- Automatically add default to config.yml when they are absent
2024-09-13 14:50:44 +02:00
4772480e59
version up (1.6.1) 2024-09-13 14:37:48 +02:00
cfe0faf456
Automaticly add default value when value is absent 2024-09-13 14:31:59 +02:00
3bdb0ce536
Moved "isFolia" to main module to avoid error on java version under 1.21
Also moved folia scheduler to another nms module allowing support of folia 1.20.4
2024-09-13 14:08:29 +02:00
694ece5443
Experimental Folia support (#30)
Current implementation is not 100% safe. (may have issue on config
reload while someone triggered an anvil event). And GUI do not work. But
main functionalities should work (as most of it is read of the
config/config holder objects. Concurrent read should be fine)
2024-09-13 13:47:39 +02:00
1ec4bc27f2
dissalow use of gui and add warning for folia. 2024-09-13 12:53:33 +02:00
80aeb165cc
Add basic folia support 2024-09-13 12:53:27 +02:00
3f0b432e1a
Prepared for disenchantment v5.4.0 (#28)
Disenchantment updated to 5.4.0
2024-09-13 12:48:57 +02:00
ce01702cea
Add work type option for config gui.
Removed some useless function for setting guis.
fix work penalty increase_only not working.
2024-09-01 16:47:40 +02:00
519ab1853c
Add work penalty type 2024-08-31 15:09:52 +02:00
98172a11c9
Did some gui design modification 2024-08-30 07:25:40 +02:00
c74ea42734
2 small fix.
Fix included enchantment of conflicts back button returning to main menu instead of the selected conflict.
Fix custom craft exact button count not setting the correct setting.
2024-08-30 07:25:39 +02:00
cf4cc740e8
Better way to find rarity on paper. 2024-08-30 07:25:34 +02:00
6a0baf91ff
Update README.md
Add modrinth link
2024-08-29 02:27:40 +02:00
25ce1ef779
Update README.md 2024-08-28 22:24:57 +02:00
bf1956e01f
Prepare for disenchantment v1.4.0 2024-08-25 21:54:20 +02:00
42814237f3
25 incompatible with disenchantment (#26)
Ensure compatibility with disenchantment and make it use custom anvil xp
settings.
2024-08-21 16:20:41 +02:00
1b25611958
version up. (1.6.0) 2024-08-21 16:11:57 +02:00
1b7560b1a0
Add Disenchantment to readme. 2024-08-21 03:57:52 +02:00
92dcfd87cf
Moved some other function to the new util. 2024-08-21 03:41:07 +02:00
aa860bdbf0
Override Disenchantment xp.
This allows to use Custom Anvil xp settings !
2024-08-21 03:26:22 +02:00
804c11a7f4
Do not continue anvil process if Disenchantment done something. 2024-08-21 03:13:58 +02:00
3c8810ed72
Add Disenchantment as dependency 2024-08-20 03:05:26 +02:00
849f25f30b
Version up. 2024-08-18 20:08:11 +02:00
c1ee85150b
Update README.md
Add comment about what version need protocolib
2024-08-11 18:24:13 +02:00
d472e19499
Fix issue with custom anvil craft (#23)
Only remove experience on custom anvil craft if player not in creative.
(fix #21)
Remove the right amount of experience for custom craft.
2024-08-11 04:30:17 +02:00
d1cfd7443c
Only remove experience on custom anvil craft if player not in creative.
Remove the right amount of experience for custom craft.
2024-08-11 04:24:53 +02:00
1746cdfbde
partialy remove protocolib dependency (#22)
Remove necessity of protocolib for some version (1.17 to 1.21.1)
Can still set `force_protocolib=true` to use protocolib instead of the
build-in packet sender.
2024-08-11 03:58:39 +02:00
4e1976b6bd
Add nms for 1.17 and 1.17.1 even if these version will not receive support and will not be tested.
Could not add nms for 1.16.5 bc of missing paper userdev.
2024-08-10 05:15:22 +02:00
2d5e83b87c
Create nms for 1.18 to 1.21.
Not tested for most version but should work as expected. will test for most versions before release.
2024-08-09 23:35:31 +02:00
0f2a295039
Created 1.18 R1 (plugin's native version) nms package.
Created 1.18 R1 handling of sending player abilities packet and tested on spigot.
Documented force_protocolib config.
2024-08-08 23:37:43 +02:00
6c5eab6fff
Add new Packet Manager Selector 2024-08-08 04:21:23 +02:00
3cc9c674f3
Force UTF-8 and replace § has hex value (\u00A7) to utf-8 § 2024-08-08 01:41:44 +02:00
7d20ea83c3
Create common nms module. 2024-08-07 23:20:04 +02:00
056892ee1e
Fix unit repair not increasing penalty and version up.
This was caused by previous fix fixing renaming increasing penalty.
2024-07-30 22:33:55 +02:00
44367d0ced
Version up 2024-07-28 18:47:43 +02:00
ab1add8fd6
Add Color support (#19)
Add logic to support color code (like &a) and hexadecimal color (like
#00ff00).
Create its configuration and its config GUI buttons.
2024-07-28 18:46:33 +02:00
06ea5e72d5
Add Permission and feature to README.md 2024-07-28 18:45:48 +02:00
1cc3143a0e
Add item to disable configuration button that would change nothing. 2024-07-28 18:36:59 +02:00
3444c71763
Add color config to basic gui. 2024-07-28 18:21:13 +02:00