Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Taxes #5

Open
ThatOverPowered opened this issue Jul 20, 2021 · 0 comments
Open

Implement Taxes #5

ThatOverPowered opened this issue Jul 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ThatOverPowered
Copy link

ThatOverPowered commented Jul 20, 2021

Feature related to a problem ?

No, just a new feature, add a taxes system would be great, like real life it self. Also gives the plugin a nice touch.

Describe the solution you'd like

Personally, I would like it this way (of course it all depends on the developer):

The seller: When the seller sells an item and a player buys it, the seller will receive less money than the sale price of the item.
Example: I sell 1 apple for 50 coins, but I have 15% tax because I have the "marketplace.tax.15percent" permission, so when a player buys the apple from me, I will get 42,5 coins.

The buyer: Almost the same as the seller but in reverse. In this case, it would be a discount instead of a tax. The working method will be the same.
Example: I buy 1 apple that was set at 50 coins, if I don't have permission to get a discount, that's it, the apple is purchased at 50 coins. But if I have a discount permission "marketplace.disscount.5percent", I bought the apple for 47.5 coins.

Configuration file:
So, we have the idea, but how it will be displayed in the configuration files, so that the user can customize their taxes and discounts.
Here's an example:

// Taxes and discounts:

Taxes:
CustomNameForThisTax:
Permission: "marketplace.tax.[CustomName]
// Taxes would be calculated on percentages
TaxInput: #AnInteger, example 15

Discounts:
CustomNameForThisDisccount:
Permission: "marketplace.disccount.[CustomName]
// The discount would be calculated in percentages
TaxInput: #AnInteger, example 5

Example of tax permissions: marketplace.tax. [CustomName]
Discount permissions example: marketplace.disscount. [CustomName]

  • Wish you the best, ThatOverPowered
@ThatOverPowered ThatOverPowered added the enhancement New feature or request label Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant