38 Commits

Author SHA1 Message Date
757fcdf139 Improves configuration migration, and fixes some issues
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Fixes incorrect dropItems instead of dropItem key in config.yml
Adds some missing dropper messages to config.yml
Adds proper migration keys for all known configuration options
Adds a modified version of Stargate's StargateYamlConfiguration to allow retaining comments during configuration migration.
Fixes the annoying "[]" is not a valid repairable item
Removes the use of data keys for the global configuration
2024-05-04 17:40:21 +02:00
f9463f58d1 Fixes some bugs
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Fixes some config commands not being registered
Bumps KnarLib version to include bug-fix
Fixes and improves tab-completion for enchantment block-list
2024-05-04 14:11:43 +02:00
7e5525bd00 Updates Spigot, and fixes depreciated code
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2024-05-04 02:46:46 +02:00
4012e532da Finishes the scrapper implementation
Some checks failed
EpicKnarvik97/Blacksmith/pipeline/head There was a failure building this commit
2024-05-04 01:01:56 +02:00
455db78988 Updates some KnarLib code
Some checks failed
EpicKnarvik97/Blacksmith/pipeline/head There was a failure building this commit
2024-01-25 16:57:10 +01:00
dfae68050e Implements some necessary code for the scrapper
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Implements ignored salvage
Implements salvage-able items
Adds some TODOs
Implements salvage fail chance
Moves several methods to ItemHelper
Adds option for allowing extended salvage
2023-12-30 13:56:33 +01:00
4282cd8a2f Displays descriptions for each setting when displaying the value 2023-11-16 19:44:35 +01:00
4f885135e3 Implements the scrapper global edit command
Changes setting quite a bit to avoid code duplication
2023-11-16 01:17:27 +01:00
f3f3f66c38 Writes a lot of code necessary for the scrapper
Adds the classes necessary for the new scrapper
Partly implements some scrapper functionality
Restructures some classes to reduce code duplication
Moves some classes to make some classes easier to find
Adds a bunch of TODOs where things have an unfinished implementation
2023-11-14 16:04:48 +01:00
e39e70b690 Merge branch 'master' into dev
# Conflicts:
#	src/main/java/net/knarcraft/blacksmith/BlacksmithPlugin.java
2023-11-12 19:40:51 +01:00
92585c4dee Adds a missing null check 2023-11-12 19:08:06 +01:00
c84c2cf30e Adds tests for TypeValidationHelper
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-28 09:13:02 +01:00
a79f2e273a Adds missing tests for ItemHelper
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-17 05:28:46 +01:00
347b69b2a8 Removes disableMaterialLimitation
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Removes the disableMaterialLimitation option
Replaces EnchantmentTarget.BREAKABLE.includes(item) with getMaxDurability(item) > 0 as it seems more generic
2023-01-16 19:45:41 +01:00
e5cb3b4a30 A lot of tests, and some improvements
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Adds a lot more tests for some utility classes
Adds a new option to disable the hard-coded limitation "EnchantmentTarget.BREAKABLE" which can be useful for servers with custom items or similar.
Makes enchantment name matching case-insensitive.
Prevents an exception is enchantment name contains invalid characters.
Makes invalid objects supplied to asStringList return null instead of throwing an exception.
Uses isBlank instead of trim.isEmpty in the isEmpty method
Re-uses the random generator if calculating salvage several times
2023-01-16 17:42:54 +01:00
bbb93bb0eb Fixes a bug in multi-item salvage
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-14 17:46:29 +01:00
7cc2aef9d4 Adds some tests for the salvage helper
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-14 15:10:40 +01:00
8e5d4c7a61 Adds a helper class for calculating random item salvage #18
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-13 20:34:34 +01:00
753c7c6275 Adds optional ability to reforge anvils #15
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-09 23:47:17 +01:00
a856aa03e0 Implements material wildcards for costs #14
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-09 16:53:52 +01:00
ea54492ccf Adds negation for material names and presets #13 2023-01-09 05:03:28 +01:00
30b8507b9f Improves the tab-completion values for reforgeAbleItems
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-06 14:52:30 +01:00
5089a721a0 Fixes some minor issues
Fixes some repositories using http instead of https
Fixes formatting for tables
2022-11-14 02:44:18 +01:00
a036c39dc3 Updates code to account for KnarLib changes 2022-11-07 22:22:23 +01:00
a501a3cbb4 Changes things for the non-static Translator 2022-11-07 15:20:30 +01:00
3c805ee284 Uses KnarLib for common tasks 2022-11-07 00:07:32 +01:00
89c1c4a56c Adds a new enchantmentBlocklist option
The enchantmentBlocklist allows specifying a list of enchantments blacksmiths should be blocked from adding to items. Especially curse of binding and curse of vanishing are problematic as the effect is quite bad. Mending is possibly undesirable as it's supposed to be quite rare.
2022-11-05 04:21:47 +01:00
012d1df099 Allows 0 for positive integers and doubles
It wasn't possible to set extra enchantment chance to 0. This fixes that problem.
2022-11-04 21:31:56 +01:00
cc7d66f270 Fixes several bugs and problems
Fixes getting the name of enchantments
Fixes inconsistencies in material and enchantment name-checking
Allows using "null" or "-1" to unset per-material or per-enchantment configuration options
Fixes a bug where basePrice was set to a material name instead of the price for the material being displayed
Adds missing tab-completion for material/enchantment costs
Prevents inconsistencies in deciding if a value is null
2022-10-24 13:57:58 +02:00
12f807060e Implements a mix of #3 and #7
Adds a preset command which can be used to see available presets
Adds preset filters which can be used to specify item sub-categories within a preset
Removes SWORD_SMITH and RANGED_SMITH, as those are replaced by the RANGED and SWORD filters
Adds a list of usable filters for each preset
2022-10-13 18:40:38 +02:00
30bddfa9c8 Adds possibility for message customization and translation #5 2022-10-03 18:15:38 +02:00
505d6bfb2b Adds a new check for items with full durability (#4) 2022-10-03 13:03:21 +02:00
f058f4eec8 Fixes reforge-able items and displaying color formatting codes 2022-10-02 21:03:17 +02:00
a6e9163dbd Adds tons of changes to messages 2022-09-29 01:49:12 +02:00
f3169c9255 Adds some unfinished changes for improving blacksmith commands 2022-09-05 13:51:41 +02:00
e1191dad7d Splits the blacksmith command into two commands, and much more 2022-08-19 19:08:54 +02:00
c557d969b7 Majorly changes most plugin code
Changes the entire settings structure
Splits settings into NPC settings and global settings
Adds some command classes in preparation for a new command system
Moves a lot of code away from BlacksmithPlugin
Adds a new EconomyManager class which takes care of everything economy and pricing
Removes HyperConomy softdepend
Changes the reload command to /blacksmith reload
Adds a proper configuration file to make possible to change stuff without a bloody wiki
2022-08-07 01:21:47 +02:00
3870ead92f Changes package name to net.knarcraft 2022-07-19 02:41:01 +02:00