aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-06 10:54:49 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-06 10:54:49 -0600
commit6d718d762735cbdd46a17c527712176fccd2a7da (patch)
tree10baa19041bc72c01647cb6260c475bf02fe070d
parent2968f7b9c1797c8ad125ef4a904da5f09b7a19ad (diff)
downloadresurrection-6d718d762735cbdd46a17c527712176fccd2a7da.tar
resurrection-6d718d762735cbdd46a17c527712176fccd2a7da.tar.gz
resurrection-6d718d762735cbdd46a17c527712176fccd2a7da.tar.bz2
seeing if playerlistener class is working properly
-rw-r--r--TODO.md16
-rw-r--r--out/production/Resurrection/net/brysonsteck/PlayerListener.classbin1579 -> 1714 bytes
-rw-r--r--out/production/Resurrection/net/brysonsteck/Resurrection.classbin760 -> 889 bytes
-rw-r--r--src/net/brysonsteck/PlayerListener.java1
-rw-r--r--src/net/brysonsteck/Resurrection.java3
5 files changed, 19 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
new file mode 100644
index 0000000..1ed21f5
--- /dev/null
+++ b/TODO.md
@@ -0,0 +1,16 @@
+# TODO List
+
+### For first release
+
+* figure out how to get the player.data file to add a user when one joins the server for the first time
+* get the player death event working
+* figure out how to convert milliseconds to an actual date and time for the end user
+* figure out commands and how to use them
+ * `about`
+ * `resurrect PLAYER` (resurrects a player now if needed)
+
+### For later releases
+
+* add ability to change time with new commands
+ * `change-time MILLISECONDS` (0 for default 1 day wait time)
+* figure out how to get a version updater working using the web server (using JSON hopefully)
diff --git a/out/production/Resurrection/net/brysonsteck/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/PlayerListener.class
index feee780..e4cf33b 100644
--- a/out/production/Resurrection/net/brysonsteck/PlayerListener.class
+++ b/out/production/Resurrection/net/brysonsteck/PlayerListener.class
Binary files differ
diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection.class b/out/production/Resurrection/net/brysonsteck/Resurrection.class
index aca34c9..9b8a988 100644
--- a/out/production/Resurrection/net/brysonsteck/Resurrection.class
+++ b/out/production/Resurrection/net/brysonsteck/Resurrection.class
Binary files differ
diff --git a/src/net/brysonsteck/PlayerListener.java b/src/net/brysonsteck/PlayerListener.java
index 8a57624..c9a175c 100644
--- a/src/net/brysonsteck/PlayerListener.java
+++ b/src/net/brysonsteck/PlayerListener.java
@@ -8,6 +8,7 @@ import org.bukkit.event.entity.PlayerDeathEvent;
public class PlayerListener implements Listener {
@EventHandler
public void onDeath(PlayerDeathEvent e) {
+ System.out.println("Resurrection: A player has died!");
Player p = e.getEntity();
Long timeOfDeath = System.currentTimeMillis();
Long resurrectionTime = timeOfDeath + 86400000;
diff --git a/src/net/brysonsteck/Resurrection.java b/src/net/brysonsteck/Resurrection.java
index 74fc8af..25008b8 100644
--- a/src/net/brysonsteck/Resurrection.java
+++ b/src/net/brysonsteck/Resurrection.java
@@ -19,7 +19,8 @@ public class Resurrection extends JavaPlugin {
@Override
public void onEnable() {
super.onEnable();
- System.out.println("I'm alive!");
+ System.out.println("Resurrection: I'm alive!");
+ PlayerListener playerListener = new PlayerListener();
}
// end of spigot things