Added difficulty config.
--- 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