Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

simpler settings change code #53

Closed
xImAnton opened this issue Apr 11, 2021 · 1 comment
Closed

simpler settings change code #53

xImAnton opened this issue Apr 11, 2021 · 1 comment
Labels
backend Changes/ features on Backend enhancement New feature or request

Comments

@xImAnton
Copy link
Owner

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 xImAnton changed the title simpler server settings change code simpler settings change code Apr 11, 2021
@xImAnton xImAnton added backend Changes/ features on Backend enhancement New feature or request labels Apr 11, 2021
@xImAnton
Copy link
Owner Author

added in 9b32937

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend Changes/ features on Backend enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant