17 Commits

Author SHA1 Message Date
7355b7fc60 Uses Economy.format to display costs 2022-11-14 00:36:23 +00:00
dd47ce06eb Makes sure forced refunds always refund the full amount 2022-11-13 22:39:11 +00:00
e7c40fb4b0 Makes a method to check if a block is a sign
This will hopefully prevent any more mistakes related to checking if something is a sign or not.
2022-11-12 12:48:21 +01:00
4fee628469 Adds a delayed sign removed check #13
This commit adds a delayed check for whether the block at the sign change event's location is still a sign. If it isn't, it's assumed that a plugin blocked the sign creation by destroying the sign. In this case, the player is immediately refunded, even if refunds are disabled.
2022-11-08 12:53:26 +01:00
5c095e79f6 Updates code to account for KnarLib changes 2022-11-07 22:26:22 +01:00
a9c97f71f9 Changes things for the non-static Translator 2022-11-07 15:21:02 +01:00
bb63fb59d1 Uses KnarLib where possible 2022-11-07 11:29:33 +01:00
79f3f8e3d2 Saves tracked signs after loading
Previously, if a tracked sign was removed during loading, while it wasn't added to tracked signs, tracked signs wasn't saved, so on the next startup it would be loaded again.
2022-11-05 04:12:51 +01:00
d50d9b42c4 Delays refunding on startup to prevent a crash 2022-11-05 03:26:25 +01:00
38717a6b91 Improves behavior when signs share conditions
Makes sure that the paid sign matching the most conditions is always chosen as the matching paid sign
Makes sure to always choose the most expensive paid sign if two or more paid signs with the same amount of conditions are matching.
Changes some classes to records to reduce some boilerplate code
2022-07-20 18:09:09 +02:00
35e0666a1d Performs some minor changes
Changes some warning messages to info
Displays sign creation cost when unable to create a paid sign
Changes spigot dependency to 1.19
Refunds the player during reload/startup when a tracked sign's physical sign has been destroyed
2022-07-13 15:53:28 +02:00
a7d1da7f8a Fixes a bug in refunding 2022-03-03 11:33:50 +01:00
c2ffe5e903 Adds increased detection and optional refunding of signs broken by non-players 2022-03-02 14:05:20 +01:00
664115b2b4 Translates the remaining strings and fixes a few minor bugs 2022-03-01 18:45:53 +01:00
483ffaec2b Makes sure signs are no longer tracked if they no longer exist 2022-02-28 15:35:58 +01:00
15426a46f3 Registers the block break listener and adds some small improvements 2022-02-28 15:06:58 +01:00
a1b1a5d112 Adds sign tracking and refunds #3 #8 2022-02-28 14:41:14 +01:00