Commit Graph

7 Commits

Author SHA1 Message Date
Phoenix616 92a013dd10
Cleanup: Properly log errors 2023-03-01 18:27:04 +01:00
Phoenix616 99a609b423
Unify sign line parsing and strip owner line whitespace 2022-01-26 20:35:42 +01:00
Phoenix616 6962ae2590
Added log messages to tax and discount module (#478) 2021-10-15 15:17:09 +01:00
Phoenix616 e520544d3a Add ability to reload discount and restriction module (Resolves #252) 2020-06-10 14:03:22 +01:00
Phoenix616 f0bc277566 Move to BigDecimal in all events and use the CurrencyTransferEvent
Also add tax bypass permissions (#204, ChestShop.notax.buy/sell). When buying with that permission the buyer does not have to pay the tax (the seller will still get the reduced amount), when selling the seller will get the full amount instead of one lowered by the tax.
The permissions of the shop owner play no role due to there not being a good way of checking offline player permissions and it being a bit non-obvious for the buying/selling player if a shop would be with or without tax. This way all that gets changed is the amount the player pays/receives and not the shop owner (and the player should know their permissions/rank already)

The transfer event was necessary in order to correctly resolve who triggered the transaction. Economy adapters are now required to implement a listener for each of the events. It's also recommended that economy adapters that support transfers directly use that instead of passing it through subtract and add with the processTransfer method.
2019-04-25 18:44:22 +01:00
Andrzej Pomirski 1bd0e9f8ef Change the priority of the discount handler 2015-03-11 18:02:41 +01:00
Acrobot 12a1dd87f3 Modify modules + fix maxPrice 2013-04-23 21:04:59 +02:00