Git Product home page Git Product logo

Comments (4)

iglrob avatar iglrob commented on July 30, 2024 1

My summary:

  1. Minectl creates the actual JSON-files, no use of RCON (so the user is not required to configure RCON to use this)
  2. Minectl allows to put in the uuid in the configuration, but looks up the uuid throughhttps://github.com/Electroid/mojang-api if it's not given
  3. If there is an unkown username, Minectl posts a warning, but doesn't cancel scaffolding
  4. by default, minectl overwrites the existing whitelist. An additional option (--merge-configs) allows for just adding user not already in the whitelist
  5. the whitelist will be applied to minecraft servers, not to any proxy (did a little research and it appeared that this is how it's done)
  6. the same principles will be applied to the op list (would however create a second issue to keep them seperate as they provide 2 different capabilities just based on the same principles)

If that's fine by you I'd start working on the feature.

from minectl.

iglrob avatar iglrob commented on July 30, 2024

@dirien Input is highly welcome.

For the first point I'd prefer option c) with the possibility for optoin a):

  • if the user provides both uuid and name the CLI takes the provided information
  • if the user only provides the name the CLI looks up the corresponding uuids

The second point however has a lot of potential for conflict or confusion.

from minectl.

dirien avatar dirien commented on July 30, 2024

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.

  1. I see minctl as a ignition tool, bootstrapping a minecraft server and having some convinience fn by hand. Later we want to build a Crossplane / K8s Operator. and with the k8s conciliation pattern, we can use minectl-operator also to prevent configuration drift on managed resources. For now, i would calc the hash and warn the user (or a flag --force) that the server file will be overwritten. What you think?

from minectl.

dirien avatar dirien commented on July 30, 2024

@iglrob, LGTM! Looking forward for your PR.

from minectl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.