Added difficulty config.
authorLuke Hoersten <luke@hoersten.org>
Sat, 03 Jul 2021 11:09:26 -0500
changeset 153 dbc589234a49
parent 152 740231770c7c
child 154 436cd9b3ee0b
Added difficulty config.
minecraft/defaults/main.yaml
minecraft/tasks/main.yaml
--- a/minecraft/defaults/main.yaml	Sun Jun 27 13:24:22 2021 -0500
+++ b/minecraft/defaults/main.yaml	Sat Jul 03 11:09:26 2021 -0500
@@ -6,6 +6,7 @@
 minecraft_motd: "A Minecraft Server"
 minecraft_mem: "2G"
 minecraft_seed: ""
+minecraft_difficulty: "hard"
 
 minecraft_paper_version: "1.17"
 minecraft_paper_build: "53"
--- a/minecraft/tasks/main.yaml	Sun Jun 27 13:24:22 2021 -0500
+++ b/minecraft/tasks/main.yaml	Sat Jul 03 11:09:26 2021 -0500
@@ -68,6 +68,7 @@
   loop:
     - {key: "motd", value: "{{minecraft_motd}}"}
     - {key: "level-seed", value: "{{minecraft_seed}}"}
+    - {key: "difficulty", value: "{{minecraft_difficulty}}"}
 
 - name: install systemd service
   become: yes