Commit graph

386 commits

Author SHA1 Message Date
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
904e7a769a
Fix anvil repair cost being increased for renaming. 2024-07-26 20:20:10 +02:00
f72d3622ca
Add use of color cost. 2024-07-26 20:20:09 +02:00
794a440d33
Add hexadecimal color support. 2024-07-26 16:06:39 +02:00
761f8ed4e8
Fix && being considered using color. 2024-07-26 15:30:34 +02:00
94941d1559
Correct logic for coloring using color code. 2024-07-26 15:25:31 +02:00
90344e635a
Fix not using the modified string. 2024-07-26 13:33:15 +02:00
b6853a6889
Fix mistake caused by string being imutable. 2024-07-26 13:29:07 +02:00
9744817c04
Fast build for color code support. 2024-07-26 13:25:12 +02:00
7a19632150
Add permission and config option in the config file. 2024-07-26 04:24:44 +02:00
c7f1b63c78
Version up. 2024-07-24 20:15:28 +02:00
914331e0ac
Fix echantment reload issue (#17)
Add and remove added/removed eco enchantments
Handle enchantment order (sorted by name) now work everywhere with
add/remove working.
2024-07-24 20:11:04 +02:00
a6c2d5f148
Sort new enchantment in gui on add. 2024-07-24 19:13:23 +02:00
b70887c5ca
Enchantment are now sorted on select gui. 2024-07-24 16:57:22 +02:00
9b3402e45f
Fix sorted list depending on GuiSharedConstant initialisation 2024-07-24 16:49:07 +02:00
526e6a3528
Edit README.md to reflect changes. 2024-07-24 16:07:37 +02:00
851489068d
Register new enchantment on custom anvil reload. 2024-07-24 15:57:45 +02:00
e48eb95aa8
Add unit repair api (#16)
Also optimize (not by a lot) unit repair default case.
2024-07-24 14:18:10 +02:00
e89fff951e
Add unit repair api. 2024-07-24 14:16:39 +02:00
e43f6276cd
Made unit repair test lower first.
Default config and creation use lowercase by default. testing lowercase first is a small improvement of performances.
2024-07-24 02:16:40 +02:00
b53d347221
Forget to init custom recipe config gui. 2024-07-23 04:22:14 +02:00
dd831425bd
Fix api initial issue. (#15)
- Deleted object will now not be re added by default.
- Config Event is now also triggered on reload cmd. (reload cmd now also
apply update/compatibility fix)
2024-07-23 04:20:02 +02:00
03ae19e8a7
Fix reload command not executing the config event.
Also lazy loading of config guis.
2024-07-23 04:14:38 +02:00
e39bee5952
The API now test if the object were deleted before adding. 2024-07-23 03:22:31 +02:00
565bbb7e1c
Use the delete function where a delete inteded. 2024-07-23 03:09:34 +02:00
5ed365b14d
Add DeletableResource and made every non default config a DeletableResource. 2024-07-23 03:01:57 +02:00
036f2f21e9
Update README.md 2024-07-14 12:09:38 +02:00
74b31124fd
Changed gradle to allow publication to maven central. 2024-07-13 04:10:18 +02:00
14d2397bcf
Update gradle 2024-07-13 01:07:46 +02:00
0e0afa168e
Create LICENSE 2024-07-12 13:12:46 +02:00
7407cfd135
Renamed CAVanillaEnchantment to CABukkitEnchantment for clarity reason. 2024-07-12 01:06:32 +02:00
b467823f82
Version up. 2024-07-11 16:58:46 +02:00
ff60e2bef7
Update enchantment squared. 2024-07-11 16:58:03 +02:00
de5fa240a1
Add an api (#14)
This allows developers of custom enchantment plugins to be compatible or
use functionality of Custom Anvil.
2024-07-11 16:53:32 +02:00
b89a8951b7
Use Bulk operation object for bukkit and enchantment² enchants. 2024-07-11 16:23:53 +02:00
d3252eecbd
Add Bulk enchantment operation interface. 2024-07-11 16:23:53 +02:00
0fd12b4185
Splited optimised get and clean into 2 category.
Also changed getLevel(ItemStack) from CAEnchantmentBase to CAEnchantment
2024-07-11 12:42:33 +02:00
42a028f2fd
Fix eco enchant not being registered as CAEcoEnchant. 2024-07-11 12:36:06 +02:00
ac7f975b02
Fix value written as set in yml.
Fix material group not being added at to the registry.
Fix EnchantmentSquared restriction not having enchantment.
Added plugin's instance as conflict source.
2024-07-11 00:52:51 +02:00
fc7e85529c
Write default config on enchant registering.
Fix Enchantment Squared group not adding element.
2024-07-10 23:29:33 +02:00
a5c647776c
Add event for external enchantment and config registering.
Fix startup.
2024-07-10 14:26:55 +02:00
365d0ea847
Dependency enchantment registering now use the api. 2024-07-09 21:21:10 +02:00
6f1e53f68e
Fix Custom Recipe not being registered.
Fix conflict from api not working.
Add remove api for custom recipe, material group and conflict.
2024-07-09 20:22:59 +02:00
a40d2c6530
Added custom anvil recipe api & builder.
Fixed Conflict not being registered.
Build conflict on the builder instance instead of the ConflictAPI class.
2024-07-09 13:57:15 +02:00
bcd8b6ae6e
Make compatibility object with EcoEnchant and Enchant² use the api.
Abstract material group now have varargs "addAll" function.
2024-07-08 23:24:39 +02:00