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

Add taxation to shops #72

Open
Sven65 opened this issue Oct 28, 2023 · 1 comment
Open

Add taxation to shops #72

Sven65 opened this issue Oct 28, 2023 · 1 comment
Labels

Comments

@Sven65
Copy link
Owner

Sven65 commented Oct 28, 2023

Please describe your feature request

Server admins and players with the proper permission node should be able to set the tax of an individual shop.

The tax should be paid by the seller, and be settable with a command, if the shop owner has the permission node.

There should be an option in config.yml to set the default tax, and where the money should go by default. Either to a player, or if it should be voided.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@sudojunior
Copy link
Contributor

sudojunior commented Aug 6, 2024

Thought process, trying to understand the brief.

Command options

  • /slabbo modify tax <amount:0..100f>
    • ?isLookingAt
    • !hasPermission

Permission nodes

  • slabbo.modify.(self|others).tax - set tax of a shop with appropriate access
    • self - allow shop owner to modify shop tax (... what?)
    • others - allow 'others' to modify tax of a shop
    • admin

Configuration

defaults:
  # config layouts

  # flat
  tax: 0 # 0..100 - {x}% tax on all shops
  tax_man: "{name}" # or nil - the latter would void the collected money

  # nested
  tax:
    amount: 0
    collector/funnel/recipient: "{name}" # or nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants