MyEssentials / MyTown2

Version 2 of MyTown - A Minecraft Server Protection Mod
The Unlicense
35 stars 22 forks source link

Allow wild and admin towns to have different flag values on flags that aren't configurable #441

Open joserobjr opened 8 years ago

joserobjr commented 8 years ago

If a flag is not configurable by config, example:

{
    "flagName": "MOBS",
    "defaultState": true,
    "configurable": false
 },

Enforce it only on normal player towns but allows that flag to be changed on the wild and on admin towns.

This is good to prevent mobs on spawn for without removing them from player created towns.

MuresanSergiu commented 8 years ago

I FINALLY got to this and probably the best way of doing it is to add all the flagtypes to all the towns and simply prevent people from modifying the ones that are unconfigurable. Currently the unconfigurable flags are not even saved in the database, but that seems like a really bad solution because of this issue.