Phoenix616
7c2edc93a4
Fix some issues with hooking into dependencies
...
- Directly use list of dependencies from Dependency enum instead of the one defined in plugin.yml to be able to hook into plugins not depended on
- Add ability to check for correct version of a plugin via the author name as some people "steal" plugin names...
- Fixed that a plugin's "provides" declaration was only taken into account for plugins already loaded on startup, not when they enabled later
- Made the message when a dependency was hooked into less confusing
2024-08-03 22:31:31 +01:00
Phoenix616
1523e5d70c
Use non-snapshot holders get DoubleChest block ( Fixes #604 )
2024-07-31 17:21:26 +01:00
casptyche
69df51849c
Implement priority getSignName price check, fallback Material price check ( #594 )
...
Co-authored-by: casptyche <172059830+casptyche@users.noreply.github.com>
2024-07-07 08:39:25 -02:00
Phoenix616
6a2a3a4b36
Fix custom item code getting generated for items with damage ( Fixes #598 )
2024-07-04 23:19:23 +01:00
Phoenix616
ec8032a688
Include the exception message
2024-07-04 19:39:32 +01:00
Phoenix616
e4c2fd6ef1
Catch all runtime exceptions while trying to convert items ( #600 )
2024-07-04 13:47:17 +01:00
Phoenix616
64c3126e7a
Compile against 1.20.6 ( Fixes #599 )
...
Might need to use a module or different profile to run Material shortening tests for 1.21 items :S
2024-06-20 18:49:42 +01:00
Phoenix616
32aa1403c9
Fix issue with durability not being set ( Fixes #597 )
...
Previously there was no difference between 0 and "not set" but
since 1.20.6 it's necessary to differentiate between them.
This adjusts it so that the damage is no longer set to 0 if no
value was in the item name string.
2024-06-19 13:30:17 +01:00
Phoenix616
07dd3c7a70
Update durability usage to modern API ( Fixes #597 )
2024-06-18 22:50:12 +01:00
Phoenix616
bc1f80128b
Build against 1.21
2024-06-18 22:50:12 +01:00
Johan
af02eb3f14
#579 Updated for the stock counter to be updated on any hopper input ( #591 )
2024-05-14 13:07:05 +01:00
Max Lee
7dbc1ad5d3
Merge pull request #592 from Johanmans10/bypass-price-limit
2024-04-30 01:20:52 +01:00
Phoenix616
9f4037c312
Disable Paper's NMS remapping introduced in 1.20.5.
2024-04-30 01:09:55 +01:00
Phoenix616
b6b7a6bf43
Improve EnumParser to better take in the closeness of names into account
...
This is necessary to support new 1.20.5 items as well as better support some older ones.
Also use the properly formatted name when trying to valueOf get the Enum directly.
2024-04-30 01:06:49 +01:00
Phoenix616
60b10a83b6
Adjust to use "new" potion API and improve custom effects
...
This makes it compile with 1.20.5
2024-04-30 00:24:14 +01:00
Phoenix616
b54824052d
Build against 1.20.5
2024-04-30 00:23:10 +01:00
Johanmans10
8a26b15ea9
#539 Implemented permissions for bypassing min/max sell/buy prices
2024-04-30 01:00:13 +02:00
Phoenix616
09170f6d51
Add official RedProtect repo and update dependency ( Fixes #589 )
2024-04-26 17:22:34 +01:00
Phoenix616
488cd2e9d5
Use doubles for tax amount in config instead of int ( Fixes #578 )
...
For some reason this already was a float internally but not exposed in the config? Wat.
2024-04-26 16:51:42 +01:00
Phoenix616
46d4f583ba
Revert adventure-text-serializer-gson to 4.14.0 ( Fixes #590 )
...
Newer versions don't seem to be compatible with current platform release :S
2024-04-23 00:32:27 +01:00
Phoenix616
7a73d66939
Update adventure ( Fixes #582 )
2024-04-19 16:56:09 +01:00
Phoenix616
6f5b56d20a
Fix Folia compatibility by using own ExecutorService ( Fixes #587 )
2024-03-25 22:40:03 +01:00
Phoenix616
b386cacb5e
Improve the Updater ( Fixes #541 , #586 )
...
- Use Modrinth for version checks and downloads
- Fix a possible deadlock in the version check
- Actually compare the version numbers in the check
- Add verification of the sha1 hash sum of the downloaded file
2024-03-04 19:28:02 +01:00
Phoenix616
df17fe7483
[CI-SKIP] Fix wrong author and add some more docs
2024-02-07 17:20:29 +01:00
Phoenix616
d3f8abb80e
Add release update notification ( #541 )
...
Also add that config option to our metrics
2024-02-07 16:10:08 +01:00
Phoenix616
2388da62a5
Log tax messages to the shop logger too
...
This makes it possible to turn these messages off or reroute them to the shop log file
2023-10-08 20:55:38 +01:00
Phoenix616
53aa75d9b4
Fix that Double Chests weren't supported in some cases ( Fixes #568 )
2023-09-28 17:26:37 +01:00
Phoenix616
a413e86ccf
Fix transaction message getting sent twice when server economy account is set
...
This was due to the ServerAccountCorrector calling the economy events another time with the new account.
Directly setting the new account is the far better approach and has been adjusted for all currency events.
2023-09-26 20:22:15 +01:00
Phoenix616
0fcbcbbb11
Fix ChestShop not starting if an error occurred hooking into a dependency
2023-09-25 12:55:42 +01:00
Phoenix616
a9cb8096e6
Use InventoryHolder couldBeShopContainer check (Might help with #566 )
2023-09-22 01:45:45 +01:00
Phoenix616
17bd2a1fcb
Fix issues with spaces in shortened item names
2023-08-27 16:29:06 +01:00
Phoenix616
d426492561
Fix issues with new 1.20 back side of signs
...
This basically blocks any text on the backside of a sign if the front is a valid shop
and with that also fixes an issue where valid shop sign syntax was detected on back
side sign changes.
2023-08-27 15:55:53 +01:00
Joo200
f3cf4cd96e
catch ClassCastException in the ItemDatabase update method ( #563 )
2023-08-14 20:01:49 +01:00
Phoenix616
9bbd6028d0
Add log message that informs about the server being rate limited.
2023-08-13 19:48:18 +01:00
Phoenix616
2b36b7314f
Work around potential issues with Mojang API ratelimites on startup ( #560 )
2023-08-13 19:46:44 +01:00
Phoenix616
0b8fe80443
Further item name shortening fixes
2023-07-08 16:13:29 +01:00
Phoenix616
3ef02d05cd
Restore spaces in string that might be already be shortened ( Fixes #558 )
2023-06-21 18:32:47 +01:00
Phoenix616
3a1885e2f3
Improve logger handling
...
- Log transactions with custom logger `ChestShop Shops`
- Fix that non-shop log messages show in log file (Fixes #551 )
- Fix shop removal logging being broken
- Allow reloading `LOG_TO_FILE` and `LOG_TO_CONSOLE` config options
- Fix the wording in the comments on `LOG_TO_CONSOLE` and `LOG_ALL_SHOP_REMOVALS`
2023-06-18 22:12:08 +01:00
Phoenix616
54cc1ce842
Fix wrong capitalization of item names ( Fixes #549 , #557 )
...
Regression caused from change in ed642ccf
2023-06-17 14:53:47 +01:00
Phoenix616
dc6aa21a91
Fix compatibility with older versions ( Fixes #556 )
2023-06-15 16:24:00 +01:00
Phoenix616
6ba8e092b8
Add some more detailed server type statistics
2023-06-15 15:47:35 +01:00
Phoenix616
97ffc31d2b
Separate economy adapter from other dependencies in metrics
2023-06-15 15:27:03 +01:00
Phoenix616
ed642ccf3c
Compile against 1.20.1 and fix some short name issues
...
Partially helps with #516 , #521 , #549
2023-06-15 00:28:47 +01:00
Phoenix616
999f596125
Add metrics for used economy and hooked dependencies
2023-06-14 15:50:43 +01:00
Phoenix616
30ff61d14f
Improve INCLUDE_SETTINGS_IN_METRICS option comment
2023-06-14 15:46:44 +01:00
Phoenix616
978f1270f5
Send ShopDestroyedEvent for sign edits that break a shop
2023-06-13 00:22:30 +01:00
Phoenix616
7203ec17cd
Add compatibility for new sign-editing in 1.20
...
This allows editing of signs if you hold a sign in hand but block any other interaction.
2023-06-13 00:11:48 +01:00
Max Lee
6602be68e3
Merge pull request #553 from Krakenied/strip-price-colors
...
Add option to strip price colors
2023-05-20 14:46:08 +01:00
Krakenied
2fb82a2529
Strip price colors
2023-05-20 14:56:06 +02:00
Phoenix616
05ebe2d054
Properly shutdown ExecutorService
2023-03-29 16:54:10 +01:00