hexparrot / mineos-node

node.js implementation of mineos minecraft management
GNU General Public License v3.0
338 stars 173 forks source link

Whitelist / Ops management #385

Open pgaufillet opened 3 years ago

pgaufillet commented 3 years ago

It would be great to add the capability to manage whitelist.json/ops.json content.

pgaufillet commented 3 years ago

Ooops: not the right place. Moving this request as a comment to [https://github.com/hexparrot/mineos/issues/28]()

pgaufillet commented 3 years ago

Finally it seems it is the right place for it. Sorry for the noise :-(

flareofghast commented 3 years ago

isn't the console (logs/latest.log) suitable for this?

pgaufillet commented 3 years ago

it can be done through the console, but it is not that user friendly for a usual operation.

hexparrot commented 3 years ago

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.

pgaufillet commented 3 years ago

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.

hexparrot commented 3 years ago

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?!

flareofghast commented 3 years ago

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.

pgaufillet commented 3 years ago

Exactly.

Anaerin commented 2 years ago

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?