
Embassy plot permissions being reset upon Towny database reload
gorbyhail opened this issue ยท 3 comments
What steps will reproduce the problem?
In one specific town (the oldest) on the server, owned embassy plot permissions seem to be sticking to allow everyone to switch and itemuse. When using "/plot perm reset" on an affected plot, the permissions do correctly set to whatever the owner has as default permissions for their owned plots, usually friends only for build/destroy/itemuse/switch.
However, when using "/ta reload all" or restarting the server, the owned embassy plots all go back to allowing anyone to switch/itemuse on them. Any manually set plot permissions are also overridden.
What is the expected output?
I expect the owned embassy plot permissions in this specific town not to reset every time the Towny database is reloaded.
Towny version
0.99.5.0
Server version
Paper 1.20.1 Build 68
Please use Pastebin.com to link the following files
- Your full server startup from the logs\latest.log: https://pastebin.com/qNuiEvHw
- Your Towny config.yml: https://pastebin.com/tGpyVUSx
- Your townyperms.yml: https://pastebin.com/SvB0HXLD
- Your log's error: Cannot find any log errors related to Towny unfortunately
Small update to this, it's resetting the owned embassy plot permissions to the default town-owned plot permissions. I don't think this is expected behaviour as it makes no sense that the plot owners permissions would be overridden like this?
I've taken a look at this and I'm wondering at which point the resident sets the permissions to the embassy plot?
Plots don't automatically take a resident's permission line when they're purchased.
I have found where the plots take on the resident's permission line. I do not see any special case that stops a embassy plot from taking the resident's line instead of the town. It uses the same code as the normal plots, shops, inns and banks.
Now I think I've spotted the issue, but it probably shouldn't only be limited to embassy plots, instead it ought to be affecting normal plots, embassies, shops, inns and banks.