Now the get_sdk_version won't be called on modded servers, preventing a non base 10 error (because the modpack's version name won't be represented as a minecraft version, but as the modpack name itself.
- Added version parameter to 'start_server' function in MinecraftManager class
- Implemented a version checker that uses a pointer of Tuples, each of them containing a lower and upper bound, as well as the associated sdk
- Used currying method to concatenate 'version_range_checker' into the fastest and most efficient code
This system will allow easy versioning, as well as easy future sdk implementations.
It will also now be easy to fetch a server's version directly in the backend.
Co-authored-by: charleslemaux <charles@le-maux.dev>
Fully implemented authentication
Fully implemented return codes and errors
Fully implemented firestore database data
Created 'fetch_servers' and 'set_subdomain' routes for front-end use.
[+] Security patch, requests will not return anything if not properly authenticated
[~] Reworked the route system entirely
[+] TODO : firebase_manager.py error handling
[+] TODO : global error log using file_manager.log_error(error_type:str, error_message:str)
Signed-off-by: Charles Le Maux <charles.le-maux@epitech.eu>