-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for whitelist configuration #106
Comments
@dirien Input is highly welcome. For the first point I'd prefer option c) with the possibility for optoin a):
The second point however has a lot of potential for conflict or confusion. |
I like this feature, you can extend this also tho op list. Atm, i need to RCON to the server to add a user to the ops list. Regarding the the three options have a look into my prometheus exporter -> https://github.com/dirien/minecraft-prometheus-exporter#api. There i use tha API from https://github.com/Electroid/mojang-api. Its much better then the vanilla mojang api. As in the nature of minectl you need to have online conection, we could use the Electroid API to get the UUID/ID from there and treat the target server as potential offline. eg. server in a BungeCord mesh has to set the propery online-mode to false.
|
My summary:
If that's fine by you I'd start working on the feature. |
@iglrob, LGTM! Looking forward for your PR. |
Overview
Public accessible Minecraft servers are usually configured with a whitelist to control which players get access to ones server.
Involved parts
The first step is to configure the corresponding option in the server.properties file:
white-list=true
Furthermore a file called whitelist.json needs to be placed in the same folder like the server.properties file.
The structure of the whitelist looks as follows:
Consideration
a. require the user to provide both name and uuid
b. require only the name and expect the server to be in online mode
c. require only the name and lookup the uuid before applying the configuration to the server from within the cli
a. Enforce the whitelist configured through the CLI with each update executed against the server
b. Merge the whitelist between the existing one on the server and the one configured through the CLI.
Important! This would make it impossible to delete a user from the whitelist through the CLI!
c. Add support for explicit commands to the CLI like adding a user or deleting a user or even merging and enforcing the configured whitelist. While this would allow for a lot of options for the user it makes it somewhat brakes with the current style to configure everything in yaml.
The text was updated successfully, but these errors were encountered: