alex9849 / advanced-region-market

A Bukkit/Spigot plugin for renting/selling WorldGuard regions
https://www.spigotmc.org/resources/advancedregionmarket.58732/
69 stars 45 forks source link

Regions get removed on restart #155

Closed JustGoinPostal closed 10 months ago

JustGoinPostal commented 10 months ago

Whenever I fully set up my regions and the server restarts my regions are still in the regions file but are not identified by the plugin anymore.

alex9849 commented 10 months ago

Can you submit your regions file with regions?

JustGoinPostal commented 10 months ago

regions.txt here is it in a text file wont let me upload a yml file

alex9849 commented 10 months ago

Your problem is, that your world name contains dots. In the spigot api a dots is a splitting character which starts a new configuration section and therefore and indentation. This messes up the regions file. Rename you wold such that the dots are removed from the name and your problem should be gone.

JustGoinPostal commented 10 months ago

Is there any other way to do this within the plugin because changing my world name is going to mess up all of my current plugins.

alex9849 commented 10 months ago

Unfortunately not. The dot is a separator character in the spigot yaml library and there is no escape character. So I can't really change anything. The only option would be to create one folder per world. But that would require huge changes in the plugin code itself. Also, at the moment I'm just maintaining the plugin and not actively adding features. So this won't be implemented in the near future.