summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-01-29 19:45:51 +0100
committerLinnnus <[email protected]>2025-01-29 19:45:51 +0100
commit4045192587574bc33caf91d99f3b0bdc8a832782 (patch)
tree867f0c1f4b55e03f380ff4be2ef0d7c81b3914c7
parent8458a32b44b292912940805f72aec859f4315771 (diff)
ahmed/minecraft: Add whitelist
-rw-r--r--hosts/ahmed/minecraft/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/ahmed/minecraft/default.nix b/hosts/ahmed/minecraft/default.nix
index 112ef8f..fdcad2c 100644
--- a/hosts/ahmed/minecraft/default.nix
+++ b/hosts/ahmed/minecraft/default.nix
@@ -19,6 +19,21 @@
# I changed the default location after creating the world.
data-dir = "/srv/minecrafter/papermc-1.21.4-15";
+
+ # Whitelist generated with this command:
+ # ```sh
+ # journalctl --grep='UUID of' --unit=minecraft-server.service \
+ # | sed -E 's/.*UUID of player (.*) is (.*).*/"\1" = "\2";/p' -n \
+ # | sort -u
+ # ```
+ server-properties."white-list" = true;
+ whitelist = {
+ "BANANABARBARA" = "b3fa0532-e49c-4783-8ba4-e20082983d30";
+ "em_T" = "c52db3ea-9f8a-4e0f-af11-7ca56099dfb1";
+ "_SneakyPanda_" = "6f88ea4f-2f87-47c9-99dd-be16e68c9913";
+ "TobiKanob1" = "07931771-f2eb-4894-ac84-d3a121086d9f";
+ "Alfholm" = "6a0a1d3b-ad0f-4a73-8e0c-97782a380ff4";
+ };
};
# Update the DDNS.