NLthijs48 / AreaShop

A Bukkit/Spigot (Minecraft server) plugin that facilitates renting and buying WorldGuard regions
GNU General Public License v3.0
55 stars 89 forks source link

Critical Bug / Infinite duplicating #573

Open wanou067 opened 4 years ago

wanou067 commented 4 years ago

Current behavior When the option restore on sell is enabled, it's possible to duplicate all the stuff you want. It's very easy, and critical, simply drop items in a region before buying it, for example i will drop 64 diamond block in the region, then i will buy it, then sell it. It will save the entities, so i will save the diamond on the ground. So when you sell the region the diamond are duplicated, do it every time you want, you duplicate exponentially.

Expected behavior

Don't save the entities en buying !

Steps to reproduce

  1. Drop item or place entites in a region for sale
  2. Buy the region
  3. Sell the region
  4. Pickup your items or repeat the operation

Your environment

Please ! you need to disable the saving of entities !