Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Added /sell multipliers with configuration

Open justinmtech opened this issue 3 years ago • 1 comments

Information

This PR closes #3934

Details

Proposed feature:

Sell multipliers! The idea is for servers to be able to control how much players can /sell their items for based on configurable permissions. I re-wrote this based on @Chew's feedback to work more similarly to the multiple set-home system so that it doesn't have to iterate over all of a players' permissions and instead, check if they have the ones in the config. https://github.com/EssentialsX/Essentials/issues/3934

Environments tested:

OS: Windows 10

Java version: OpenJDK 17.0.1

  • [x] Most recent Paper version (1.18.1, #153)
  • [ ] CraftBukkit/Spigot/Paper 1.12.2
  • [ ] CraftBukkit 1.8.8

Demonstration:

Screenshot: https://i.imgur.com/ju0jMUy.png Here I give myself a diamond and sell it with no permissions (as op), then I give myself the "essentials.sell.multiplier.double" permission and as you can see, my sell price is double. Plugin Download: https://www.dropbox.com/s/56y3zf6ibarlwj4/EssentialsX-2.19.3-dev%2B6-739600e-sell-multipliers-redo.jar?dl=0

justinmtech avatar Jan 20 '22 17:01 justinmtech

Can we please get sell multipliers implemented to latest essentialsx?

zzkanezz2 avatar Apr 08 '24 19:04 zzkanezz2