Open pgaufillet opened 3 years ago
Ooops: not the right place. Moving this request as a comment to [https://github.com/hexparrot/mineos/issues/28]()
Finally it seems it is the right place for it. Sorry for the noise :-(
isn't the console (logs/latest.log) suitable for this?
it can be done through the console, but it is not that user friendly for a usual operation.
The problem with the files, however, is that they are not tracked and read when changed.
So if the webui adds entries to the whitelist file, it won't be active until server restart. Minecraft actively writes what happens in the console TO the file, but not actively reads FROM the file. There's a fairly big worry that the UI wouldn't be able to do a good job. Of course, when the server is off, you can't add entries either.
The best solution would be: if there was a command ingame to force Minecraft to reload what is written to file, but until then, I guess it might be viable to have a whitelist page that auto-hides (or remarks it doesn't work live) when the server is up.
The service could also be provided through minecraft console commands generated by the UI rather than file edition.
Or if the server is off directly thanks to GET https://api.mojang.com/users/profiles/minecraft/<username>
requests and file write.
Or if the server is off directly thanks to GET https://api.mojang.com/users/profiles/minecraft/
requests and file write.
mojang.com provides online service for whitelist/blacklist?!
I think the end point is for getting the UUID
Sent from my iPhone
On 6 Jul 2021, at 8:58 am, William Dizon @.***> wrote:
Or if the server is off directly thanks to GET https://api.mojang.com/users/profiles/minecraft/ requests and file write.
mojang.com provides online service for whitelist/blacklist?!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Exactly.
The best solution would be: if there was a command ingame to force Minecraft to reload what is written to file, but until then, I guess it might be viable to have a whitelist page that auto-hides (or remarks it doesn't work live) when the server is up.
You mean /whitelist reload
doesn't work for you?
It would be great to add the capability to manage whitelist.json/ops.json content.