xImAnton / mcweb

a web-remote minecraft server wrapper with some unique features
GNU General Public License v3.0
1 stars 0 forks source link

simpler settings change code #53

Closed xImAnton closed 3 years ago

xImAnton commented 3 years ago

dict with attribute names and checking functions

in settings endpoint handler, iterate over params, check if they're in attribute dict and check type. if valid, apply changes to mongo and refetch server.

make MinecraftServer#update_doc read attribute dict and generate dict of changeable attribute dynamically

xImAnton commented 3 years ago

added in 9b32937