Skip to content

Commit

Permalink
feat(minecraft): add unified metrics to creative-world, refactor lobby
Browse files Browse the repository at this point in the history
env
  • Loading branch information
tyriis committed Feb 5, 2025
1 parent 1adc57d commit 454c7bf
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 40 deletions.
6 changes: 6 additions & 0 deletions kubernetes/talos-flux/apps/gaming/minecraft-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ Floodgate is a hybrid mode plugin. It introduces new features:
This is something you install in addition to Geyser.
Unlike Geyser, Floodgate can only be installed as a plugin on Spigot (including Paper and forks), Bungeecord, Velocity, and as a mod on Fabric servers, and can only be utilized on servers that have it installed.

## UnifiedMetrics

[UnifiedMetrics Documentation](https://docs.cubxity.dev/docs/unifiedmetrics/intro)

UnifiedMetrics is a fully-featured free and open-source metrics collection plugin for Minecraft servers.

## Findings

### vane mod
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# UnifiedMetrics https://hangar.papermc.io/cubxity/UnifiedMetrics
https://github.com/Cubxity/UnifiedMetrics/releases/download/v0.3.8/unifiedmetrics-platform-bukkit-0.3.8.jar
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ spec:
MEMORY: "1024M"
ENABLE_RCON: "true"
CF_PARALLEL_DOWNLOADS: "4"
MODS_FILE: /config/plugins.txt
LEVEL: creative-world
STOP_SERVER_ANNOUNCE_DELAY: "30"
STOP_DURATION: "30"
Expand All @@ -111,6 +112,8 @@ spec:
containerPort: 25565
- name: rcon
containerPort: 25575
- name: metrics
containerPort: 9100

resources:
requests:
Expand All @@ -125,6 +128,9 @@ spec:
java:
port: 25565
protocol: TCP
metrics:
port: 9100
protocol: TCP
rcon:
controller: minecraft
type: ClusterIP
Expand All @@ -133,15 +139,15 @@ spec:
port: 25575
protocol: TCP

# serviceMonitor:
# metrics:
# enabled: true
# serviceName: *app
# endpoints:
# - port: metrics
# scheme: http
# path: /
# interval: 1m
serviceMonitor:
metrics:
enabled: true
serviceName: mminecraft-creative-world-minecraft
endpoints:
- port: metrics
scheme: http
path: /
interval: 1m

persistence:
config:
Expand All @@ -154,3 +160,6 @@ spec:
- path: /config/paper-global.yml
subPath: paper-global.yml
readOnly: true
- path: /config/plugins.txt
subPath: plugins.txt
readOnly: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ configMapGenerator:
files:
- spigot.yml=config/spigot.yaml
- paper-global.yml=config/paper-global.yaml
- plugins.txt=config/plugins.txt
generatorOptions:
disableNameSuffixHash: true
annotations:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: minecraft-lobby-world-env
data:
EULA: "true"
DIFFICULTY: peaceful
OPS: "tyriis,jazzlyin"
MAX_PLAYERS: "25"
ALLOW_NETHER: "false"
ENABLE_COMMAND_BLOCK: "true"
GENERATE_STRUCTURES: "false"
SPAWN_ANIMALS: "false"
SPAWN_MONSTERS: "false"
SPAWN_NPCS: "false"
SPAWN_PROTECTION: "0"
VIEW_DISTANCE: "14"
MODE: creative
MOTD: "techtales lobby"
PVP: "false"
LEVEL_TYPE: FLAT
ONLINE_MODE: "false"
CF_PARALLEL_DOWNLOADS: "4"
ENABLE_RCON: "true"
MAX_BUILD_HEIGHT: "256"
ENABLE_ROLLING_LOGS: "true"
LOG_TIMESTAMP: "true"
SNOOPER_ENABLED: "true"
LEVEL: lobby
SERVER_NAME: lobby
STOP_SERVER_ANNOUNCE_DELAY: "30"
STOP_DURATION: "30"
USE_AIKAR_FLAGS: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -71,45 +71,16 @@ spec:
name: minecraft-rcon
- secretRef:
name: curseforge-api-key
- configMapRef:
name: minecraft-lobby-world-env
env:
# https://docker-minecraft-server.readthedocs.io/en/latest/variables
TZ: ${SETTING_TZ}
EULA: "true"
TYPE: "PAPER"
# TODO renovate
VERSION: "1.21.4"
DIFFICULTY: peaceful
OPS: "tyriis,jazzlyin"
MAX_PLAYERS: "25"
ALLOW_NETHER: "false"
ENABLE_COMMAND_BLOCK: "true"
GENERATE_STRUCTURES: "false"
SPAWN_ANIMALS: "false"
SPAWN_MONSTERS: "false"
SPAWN_NPCS: "false"
# SPAWN_PROTECTION: "0"
VIEW_DISTANCE: "14"
HARDCORE: "false"
MODE: creative
MOTD: "techtales lobby"
PVP: "false"
LEVEL_TYPE: FLAT
ONLINE_MODE: "false"
MEMORY: "1024M"
ENABLE_RCON: "true"
CF_PARALLEL_DOWNLOADS: "4"
MODS_FILE: /config/plugins.txt
USE_AIKAR_FLAGS: "true"
SNOOPER_ENABLED: "true"
MAX_BUILD_HEIGHT: "256"
LEVEL: lobby
SERVER_NAME: lobby
STOP_SERVER_ANNOUNCE_DELAY: "60"
STOP_DURATION: "60"
ENABLE_WHITELIST: "false"
ENABLE_ROLLING_LOGS: "true"
LOG_TIMESTAMP: "true"
# REMOVE_OLD_MODS: "true"
REPLACE_ENV_DURING_SYNC: "true"
CFG_PROXY_SECRET:
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- config-map.yaml
- secret.sops.yaml
- replication-destination.yaml
- persistent-volume-claim.yaml
Expand Down

0 comments on commit 454c7bf

Please sign in to comment.