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
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
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
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
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
851489068d
Register new enchantment on custom anvil reload.
2024-07-24 15:57:45 +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
03ae19e8a7
Fix reload command not executing the config event.
...
Also lazy loading of config guis.
2024-07-23 04:14:38 +02:00
5ed365b14d
Add DeletableResource and made every non default config a DeletableResource.
2024-07-23 03:01:57 +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
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
0da9d48ee9
Fix EcoEnchant enchantment disappearing on rename.
2024-07-08 19:32:00 +02:00
fca7bbb416
Added material group API.
...
Also edited some javadoc.
2024-07-08 15:36:19 +02:00
e1f6c3f5a8
Write conflict to file when write conflict is called.
...
Allow custom default rarity.
Update ConflictBuilder javadoc.
Allow null source for ConflictBuilder.
Log conflict origin on warning.
2024-07-08 01:01:53 +02:00
06b3dc89c2
Add api to add conflict.
2024-07-07 22:42:52 +02:00
e7f1218576
Version up and README.md edit.
2024-06-23 22:33:37 +02:00
a4dda06602
Add default for eco enchant enchantments.
2024-06-23 22:13:55 +02:00
5e42bf3a90
Fix enchantment being applied to the left item when trying to combine.
...
Fix conflict not being applied on some situation.
2024-06-22 14:59:56 +02:00
19806773a6
Partially implemented eco enchant compatibility.
2024-06-22 03:05:08 +02:00
3c60e157e4
Add comment and Finish test of conflict for CAEnchant.
2024-06-20 13:54:13 +02:00
dafe595c5b
Renamed WrappedEnchantment to CAEnchantment (CustomAnvilEnchantment).
...
created an interface out of CAEnchantment and moved the implementation to CAEnchantmentBase.
2024-06-20 13:09:27 +02:00
fa4752ea67
Rework the conflict system to be mostly handled by the enchantment.
2024-06-20 03:00:09 +02:00
0ed0e01f3b
Fix material group not working when config fix is applied.
...
Also change Enchantment Squared warning message.
2024-06-18 18:15:07 +02:00
fd1fb97174
Automatic Enchantment Squared configuration.
2024-06-18 17:09:55 +02:00
6553122819
Add permission check for Enchantment² enchantments.
2024-06-18 03:13:40 +02:00