Closed zly2006 closed 3 months ago
I was following the original JSON methodology from other mods. Fortunately I am familiar with the GSON syntax, so I know what you are doing here. My "corelib" mod that I've been working on uses a similar Config handler method via GSON. But question, where are the ServixConfig.class
files ?
Ohh I see, it's an inner-class 🤣
Eventually I want to extend the /servux
command like we talked about, with a Config Validator wrapper; sort of like how Carpet Mod works, but lots of work needs to be done for this.
What I've done so far, was to lay out the frame work / ideas. The command interface is also meant to be converted into an extendable Interface for registering commands, for mods that use Servux as a server-side library mod, at some point.
Then perhaps in the future, the Data Provider's can be more of a 'module' system.
Eventually I want to extend the
/servux
command like we talked about, with a Config Validator wrapper; sort of like how Carpet Mod works, but lots of work needs to be done for this.What I've done so far, was to lay out the frame work / ideas. The command interface is also meant to be converted into an extendable Interface for registering commands, for mods that use Servux as a server-side library mod, at some point.
Then perhaps in the future, the Data Provider's can be more of a 'module' system.
OK I ll do this in another PR
I'll merge it for now
I was also doing something with the whitelist / blacklist back in the 1.20.6 branch under snapshot, but it was syncing the settings from the clients. I removed all of that code previously for simplicity.
You dont need the old default permission stuff. You can just create a class for the config, with default values. it should be totally removed later.