MLG-Fortress / PopulationDensity

The now-official repository of the PopulationDensity Bukkit plugin
https://dev.bukkit.org/projects/population-density
10 stars 10 forks source link

fix editable signs on regionpost #107

Closed MajdT51 closed 1 year ago

MajdT51 commented 1 year ago

As mentioned in this issue https://github.com/MLG-Fortress/PopulationDensity/issues/106 the sigs can be edited by any player and they are not protected anymore. Although it is not very critical because the signs are regenerated every while and then. I think it is better to fix it.

I only added an extra event handler similar to the one used in onBlockBreak to protect a regionpost.

Tested on local paper-1.20.1-32.jar Server with op User and normal User

Thanks