Open iglrob opened 2 years ago
@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