Made ops templated.
authorLuke Hoersten <luke@hoersten.org>
Sat, 03 Jul 2021 11:13:02 -0500
changeset 154 436cd9b3ee0b
parent 153 dbc589234a49
child 155 4d45841961e7
Made ops templated.
minecraft/files/ops.json
minecraft/templates/ops.json.j2
--- a/minecraft/files/ops.json	Sat Jul 03 11:09:26 2021 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-[
-  {
-    "uuid": "98827ef9-601c-49fd-b575-abc8de019854",
-    "name": "Lukemute",
-    "level": 4,
-    "bypassesPlayerLimit": true
-  }
-]
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/minecraft/templates/ops.json.j2	Sat Jul 03 11:13:02 2021 -0500
@@ -0,0 +1,10 @@
+[
+  {% if minecraft_ops_uuid %}
+  {
+    "uuid": "{{minecraft_ops_uuid}}",
+    "name": "{{minecraft_ops_name}}",
+    "level": 4,
+    "bypassesPlayerLimit": true
+  }
+  {% endif %}
+]