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

Shop Permissions #32

Open
BrendonButler opened this issue Jan 16, 2024 · 0 comments
Open

Shop Permissions #32

BrendonButler opened this issue Jan 16, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@BrendonButler
Copy link
Owner

BrendonButler commented Jan 16, 2024

Individual stores and default stores (per world) should have permissions for buying, and selling. This will allow a more robust configurability.

An example of the usability would be something such as a towny-style server where towns have their own store(s). The current implementation would allow anyone to shop there. However, if you only wanted to give permissions to residents of that town, you could allow or disallow usage based on user permissions.

Using the store's name would be a soft matching system which would allow for multiple stores with the same name to be accessed via one permission. To make this more granular, using the store's UUID would be more ideal.

Permission examples:

  • shops.cmd.buy.<store-name>
  • shops.cmd.sell.<store-uuid>
  • shops.cmd.browse.<store-name>
  • shops.cmd.admin.* (would grant all admin command permissions: add, remove, delete, transfer, update (with infinite flags), deposit, withdraw)
  • shops.cmd.owner.* (would grant all owner command permissions: add, remove, update, deposit, withdraw)
  • shops.cmd.patron.* (would grant all patron command permissions: buy, sell, browse)
@BrendonButler BrendonButler added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 16, 2024
@BrendonButler BrendonButler added this to the RELEASE milestone Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant