aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-20 22:34:36 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-20 22:34:36 -0600
commit35551fbfd42befdda04b84bd3fc93dd516612dff (patch)
treee6c21c5bcdef4483e448caf0a3d031f18ba790c5
parentc3755e4ac45283f76e16296fbb5924047f7af9ee (diff)
downloadresurrection-35551fbfd42befdda04b84bd3fc93dd516612dff.tar
resurrection-35551fbfd42befdda04b84bd3fc93dd516612dff.tar.gz
resurrection-35551fbfd42befdda04b84bd3fc93dd516612dff.tar.bz2
added readme in data
-rw-r--r--data/README.md22
-rw-r--r--data/playerData.resurrection2
2 files changed, 23 insertions, 1 deletions
diff --git a/data/README.md b/data/README.md
new file mode 100644
index 0000000..b08748e
--- /dev/null
+++ b/data/README.md
@@ -0,0 +1,22 @@
+# `playerData.resurrection` Example File
+
+This file is crucial to Resurrection as it contains important timing data for the plugin. This file should only contain one line of data at all times and new users are appended to such line.
+
+This directory contains a sample file for you to visualize what this file will contain. The plugin creates this file in the same directory as the Spigot server jar file.
+
+Avoid touching this file while the plugin is enabled and avoid deleting or moving the file at any time after it's creation to prevent breaking the plugin.
+
+## Formatting
+
+The file is read as follows:
+```
+;username,dead,timeUntilResurrection;.............
+```
+
+* `;` are seperators between player data
+* `username` is the String of the player's display name
+ * This is planned to change to the player's UUID as development progresses.
+* `dead` is a boolean indicating if the player has died.
+* `timeUntilResurrection` is a long containing the milliseconds for when the user shall be resurrected.
+ * This value is reset to 0 if the `dead` flag is false.
+
diff --git a/data/playerData.resurrection b/data/playerData.resurrection
index d5d4ef7..58b6672 100644
--- a/data/playerData.resurrection
+++ b/data/playerData.resurrection
@@ -1 +1 @@
-username,false,0 \ No newline at end of file
+;username,false,0;username2,true,123456789234