feat(minecraft-bedrock) add whitelist users, update docs, and probes (#18721)

**Description**
Add whitelist users option if whitelist is enabled.
update docs
probes
⚒️ Fixes  #18720

**⚙️ Type of change**

- [X] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [X] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97TheNoob 2024-03-01 01:43:02 -05:00 committed by GitHub
parent 6dcb7fa7d7
commit 808baa494b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 52 additions and 10 deletions

View File

@ -33,4 +33,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/minecraft-bedrock - https://github.com/truecharts/charts/tree/master/charts/stable/minecraft-bedrock
- https://hub.docker.com/r/itzg/minecraft-bedrock-server - https://hub.docker.com/r/itzg/minecraft-bedrock-server
type: application type: application
version: 8.2.0 version: 8.2.1

View File

@ -43,3 +43,13 @@ The `/data/permissions.json` should look something like this:
- If you found a bug in our chart, open a Github [issue](https://github.com/truecharts/apps/issues/new/choose) but generally it's advised to contact us on Discord first in most cases. - If you found a bug in our chart, open a Github [issue](https://github.com/truecharts/apps/issues/new/choose) but generally it's advised to contact us on Discord first in most cases.
::: :::
## Executing server commands
This image comes bundled with a script called send-command that will send a Bedrock command and argument to the Bedrock server console. The output of the command only be visible in the container logs.
shell into the container and run whatever command you want for example:
```shell
send-command gamerule dofiretick false
```

View File

@ -103,6 +103,13 @@ questions:
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: WHITE_LIST_USERS
label: "White List Users"
description: "A user:xuid comma separated list."
schema:
type: string
default: ""
show_if: [[WHITE_LIST, "=", true]]
- variable: OPS - variable: OPS
label: "OPS" label: "OPS"
description: "To OP a player, use the XUID value, not the player's username. Multiple values accepted in this format `XUID,XUID` separated by a comma." description: "To OP a player, use the XUID value, not the player's username. Multiple values accepted in this format `XUID,XUID` separated by a comma."

View File

@ -16,18 +16,42 @@ workload:
tty: true tty: true
stdin: true stdin: true
probes: probes:
# -- Liveness probe configuration
# @default -- See below
liveness: liveness:
enabled: false enabled: true
# -- Redainess probe configuration type: exec
# @default -- See below command:
- /usr/local/bin/mc-monitor
- status-bedrock
- --host
- 127.0.0.1
- --port
- "{{ .Values.service.main.ports.main.port }}"
spec:
periodSeconds: 60
readiness: readiness:
enabled: false enabled: true
# -- Startup probe configuration type: exec
# @default -- See below command:
- /usr/local/bin/mc-monitor
- status-bedrock
- --host
- 127.0.0.1
- --port
- "{{ .Values.service.main.ports.main.port }}"
spec:
periodSeconds: 60
startup: startup:
enabled: false enabled: true
type: exec
command:
- /usr/local/bin/mc-monitor
- status-bedrock
- --host
- 127.0.0.1
- --port
- "{{ .Values.service.main.ports.main.port }}"
spec:
periodSeconds: 60
env: env:
EULA: true EULA: true
ENABLE_LAN_VISIBILITY: false ENABLE_LAN_VISIBILITY: false
@ -42,6 +66,7 @@ workload:
MAX_PLAYERS: 10 MAX_PLAYERS: 10
ONLINE_MODE: true ONLINE_MODE: true
WHITE_LIST: false WHITE_LIST: false
# WHITE_LIST_USERS: "USER:XUID,USER:XUID"
VIEW_DISTANCE: 32 VIEW_DISTANCE: 32
TICK_DISTANCE: 4 TICK_DISTANCE: 4
PLAYER_IDLE_TIMEOUT: 30 PLAYER_IDLE_TIMEOUT: 30