QuickShop-Community / QuickShop-Hikari

QuickShop is a shop plugin that allows players to easily sell/buy any items from a chest without any commands. In fact, none of the commands that QuickShop provides are ever needed by a player.
https://modrinth.com/plugin/quickshop-hikari
Other
91 stars 56 forks source link

[TODO] Add a way to divide benefits between owner and staff member of a shop #30

Closed Ghost-chu closed 1 year ago

Ghost-chu commented 2 years ago

https://github.com/Ghost-chu/QuickShop-Reremake/issues/578

kohle commented 2 years ago

+1 for this idea! Maybe a percentage could be set for each player when adding them as staff, along the lines of /qs staff add <player> [sales %]

Ghost-chu commented 1 year ago

@kohle @Chris6ix @Bloodlex This feature now implemented into master development branch.

Usage:

/qs benefit <add/remove/query> <player> <percentage>

Example:

Shop owner Ghost_chu created a shop that selling Apple for 100$ each. Use command /qs benefit add Foobar 50% to add Foobar player into benefits. Then player bought a Apple from this shop, Foobar will get 100*0.5=50$ and all remains money 100-50=50$ will give to shop owner Ghost_chu.

If there have 20$ taxes, it will become: Foobar will get 80*0.5=40$ and shop owner will get 80-40=40$ only.

This feature only applied to SELLING shops, won't affect the BUYING shops.

Ghost-chu commented 1 year ago

This feature finally added into QuickShop after two years later 🤣

Ghost-chu commented 1 year ago

snapshot available here: https://ci.codemc.io/job/Ghost-chu/job/QuickShop-Hikari-SNAPSHOT/1001/