minecraft: manage sleep-most config via ConfigMap — single player sleep enabled
This commit is contained in:
@@ -148,6 +148,10 @@ spec:
|
||||
volumeMounts:
|
||||
- name: world-data
|
||||
mountPath: /data
|
||||
- name: sleep-most-config
|
||||
mountPath: /data/plugins/sleep-most/config.yml
|
||||
subPath: config.yml
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: "1"
|
||||
@@ -180,3 +184,6 @@ spec:
|
||||
- name: world-data
|
||||
persistentVolumeClaim:
|
||||
claimName: papermc-world-data
|
||||
- name: sleep-most-config
|
||||
configMap:
|
||||
name: sleep-most-config
|
||||
|
||||
121
cluster/applications/minecraft/sleep-most-config.yaml
Normal file
121
cluster/applications/minecraft/sleep-most-config.yaml
Normal file
@@ -0,0 +1,121 @@
|
||||
---
|
||||
# sleep-most plugin configuration
|
||||
# Single-player sleep: calculation-method: players, players-required: 1
|
||||
# Mounted read-only at /data/plugins/sleep-most/config.yml
|
||||
# To change settings: edit this ConfigMap, commit, push — ArgoCD will sync,
|
||||
# then run: kubectl exec -n minecraft deployment/papermc -- rcon-cli "sleepmost reload"
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: sleep-most-config
|
||||
namespace: minecraft
|
||||
labels:
|
||||
app.kubernetes.io/name: minecraft
|
||||
app.kubernetes.io/component: papermc
|
||||
data:
|
||||
config.yml: |
|
||||
# WELCOME TO THE OFFICIAL SLEEP-MOST PLUGIN
|
||||
# AUTHORS: MrGeneralQ
|
||||
# CONTRIBUTORS: Malin, Nozemi, HorrendousEntity
|
||||
# VERSION: 5.5.3
|
||||
# SUPPORT NEEDED? Join our discord at --> https://discord.pseudonova.com/ WE ARE HAPPY TO HELP YOU FURTHER!
|
||||
# YOU CAN FIND THE DOCS FOR THIS PLUGIN HERE --> https://mrgeneralq.gitbook.io/sleepmost/
|
||||
|
||||
|
||||
# WARNING: SUPPORT IS ONLY GIVEN TO THE LATEST VERSION
|
||||
update-checker-enabled: true
|
||||
|
||||
# specify the speed/ticks for the animation
|
||||
# DEFAULT: 85 (recommended)
|
||||
nightcycle-animation-speed: 85
|
||||
nightcycle-animation-speed-max: 170
|
||||
|
||||
|
||||
sleep:
|
||||
# for each world, you can create different configurations
|
||||
world:
|
||||
enabled: true
|
||||
calculation-method: players
|
||||
percentage-required: 0.5
|
||||
players-required: 1
|
||||
mob-no-target: true
|
||||
use-exempt: false
|
||||
use-afk: false
|
||||
use-bossbar: false
|
||||
use-sound-night-skipped: false
|
||||
use-sound-storm-skipped: false
|
||||
use-title-night-skipped: false
|
||||
use-title-storm-skipped: false
|
||||
exempt-creative: false
|
||||
exempt-spectator: false
|
||||
prevent-sleep: false
|
||||
prevent-phantom: false
|
||||
nightcycle-animation: false
|
||||
storm-sleep: true
|
||||
skip-delay: 0
|
||||
heal: false
|
||||
feed: false
|
||||
skip-night-sound: ui.toast.challenge_complete
|
||||
skip-storm-sound: entity.wither.spawn
|
||||
reset-time-since-rest: true
|
||||
allow-kick: false
|
||||
gsit-hook: false
|
||||
non-sleeping-clock-animation: false
|
||||
skip-msg-audience: all
|
||||
gsit-sleep: true
|
||||
insomnia-milk: false
|
||||
gsit-sleep-cmd: false
|
||||
force-nightcycle-animation: true
|
||||
non-sleeping-sound: false
|
||||
disable-daylight-cycle-gamerule: true
|
||||
dynamic-animation-speed: false
|
||||
phantom-reset-audience: all
|
||||
clock-animation: true
|
||||
skip-storm: true
|
||||
allow-sleep-cmd: true
|
||||
insomnia-chance: 0.0
|
||||
exempt-below-y: -1
|
||||
non-sleeping-title: false
|
||||
exempt-flying: false
|
||||
|
||||
world2:
|
||||
enabled: false
|
||||
calculation-method: players
|
||||
percentage-required: 0.5
|
||||
players-required: 1
|
||||
mob-no-target: true
|
||||
use-exempt: false
|
||||
use-afk: false
|
||||
use-bossbar: false
|
||||
use-sound-night-skipped: false
|
||||
use-sound-storm-skipped: false
|
||||
use-title-night-skipped: false
|
||||
use-title-storm-skipped: false
|
||||
exempt-creative: false
|
||||
exempt-spectator: false
|
||||
prevent-sleep: false
|
||||
prevent-phantom: false
|
||||
nightcycle-animation: false
|
||||
storm-sleep: true
|
||||
skip-delay: 0
|
||||
heal: false
|
||||
feed: false
|
||||
skip-night-sound: ui.toast.challenge_complete
|
||||
skip-storm-sound: entity.wither.spawn
|
||||
reset-time-since-rest: true
|
||||
|
||||
# specify the time which the world will be set after reset
|
||||
time-after-reset: 0
|
||||
|
||||
# configure when players can and cannot sleep
|
||||
# this also controls when the animation will stop
|
||||
# please note that this does not
|
||||
time:
|
||||
night-start: 12542
|
||||
night-end: 23850
|
||||
|
||||
messages:
|
||||
cooldown: 10
|
||||
|
||||
# debug mode
|
||||
debug-mode: false
|
||||
Reference in New Issue
Block a user