Flowsqy / ShopChest

ShopChest - Spigot/Bukkit Plugin
MIT License
23 stars 14 forks source link

Error ShopChest when deleted shops from other plugin #20

Open telfrancesco opened 1 year ago

telfrancesco commented 1 year ago

Hello! I will report you a bug and if you want make a feature, i have in my server some shops removed by other plugin but in the database of shopchest the shops still appears. When this appen my console spam a lot of errors and when a player place a chest in the same position of the database of removed shops it still appear image can you make a command or a feature for remove "removed" shopchest or delete old shops?

Flowsqy commented 1 year ago

Currently, I can't code. So it will stay like that for the moment. But the easiest fix probably is to remove every shop the proper way. I don't know how you manage to remove the chest without the plugin noticing it, but it should not happen.

XXY233 commented 2 months ago

The plugin's configuration file config.yml already contains this option:

# Set whether shops should automatically be removed from the database if
# an error occurred while loading.
# (e.g. no chest, no space above chest, or unknown world)
remove-shop-on-error: true
Flowsqy commented 2 months ago

Did not know about that but it's actually quite a good fix. Nonetheless it might also delete the shop not loaded because of a sql error. Idk