BrendonButler / BrendonButler/Shops

Shop Permissions

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
Java
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.\
- shops.cmd.sell.\
- shops.cmd.browse.\
- 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_)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.