From 6d718d762735cbdd46a17c527712176fccd2a7da Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 6 Jun 2021 10:54:49 -0600 Subject: [PATCH] seeing if playerlistener class is working properly --- TODO.md | 16 ++++++++++++++++ .../net/brysonsteck/PlayerListener.class | Bin 1579 -> 1714 bytes .../net/brysonsteck/Resurrection.class | Bin 760 -> 889 bytes src/net/brysonsteck/PlayerListener.java | 1 + src/net/brysonsteck/Resurrection.java | 3 ++- 5 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 TODO.md 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 feee780abbad108bf27f4ea8913cd0f11b6373f5..e4cf33b7d496b93e515d895416e02dea3930a8fd 100644 GIT binary patch delta 626 zcmYk3TTc^F5XXO~yJeT{w%m$Xthfa)P^gQ7qODc&f;T{aKp-U(^ca zQrek!wu|0wzT&*}s?J6szmc%$rO%+>W`L+-;6J3fzfcNey9Hb<3DF&)m@oMXfvQL(N`n<-L$R^>u2 z(*_r8E)w>p`g)f4}Xo>fo%FM3j6Q-YY# zhx}if;fI2DeTD#vOES%t4$>uZPCQq%5*I=npsPnQSt+bij!NPA#XJoQX2-iJjK#Q>mDKND@AAKEOYsVWC16Y6?wQ zPLv1EQr>)2cwdB Xp9kWa^88Tl3ajE-V&!%VwPvp delta 496 zcmYk1%T60X5JgXqXFSfh4GtKR36^=71lwSo0D)j*!XpnLHY|`3%Fc@j&yz4PmnQ=mk3-z&sCB0O;MG*R^a z|j^?7}*lwEPjnvYgm^&jn82dZhxW11P4 z*+A)y8MDvSJ9A~1)x0S>Is1bmWy(%!PZ6$cY<&H>NjDiR6gl}R^OwwXb~Sh$TQ4{7(1kS$*7oXl8o_+P-AXfGMl0- g60BVk3^4&c(pY9vXhfc0%YDmxVV-1jEKtF}0n-seEC2ui diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection.class b/out/production/Resurrection/net/brysonsteck/Resurrection.class index aca34c95c031bce29c72f044b192b6998d9dc9f4..9b8a988533a57c612d39aa625fcd47fe063566ec 100644 GIT binary patch delta 421 zcmaJ+%TB^T6g^Wd#t~l#m4t}(34)|yt3TkP3u1KPQphZbrkH7sVZ}F){)dS!AZp?V z_(i%Qo@tGbXk5&>b2H~Pul8F;zDypU0UV++l(&n;V-;R&tvXS+7aX|5hm%SX88GDMe~ z$0<1N+8E-F7YiFi^9)FA60<1*TiE6%Fq?|wrsWI_S0=_wG+zFbpZyFwCDW8BFihTK zKDRPL;R&U)G1mOA@Eom3B03CTMIOb(*h$47Me?k2w1eHGQ3X{_m$EvK>Hh08^>5__ M_E1ZRhHhd19exZz1ONa4 delta 301 zcmZvXJr06E5QX2OVAz0B30Nrp{{>4+3ol_|M?8T?@C<~`LzrlxiG{6+cd^&T_!f*% zSj@}3oi|@*U&d3H_xI%rV2(*7_d-UurD(=G)>^FMhX|bpG|qt{1aufwKMpl-+v1yY zfJB>WCB2Rgx^x0&nq@zuQ#n02qjX@SK`qM!Tp_sn7hwGW3nmr7CO{rx*PIhJZbmAj pz^O};$200Vn*BY;L=Sy3eCDPsMH3ky{YQ{n6c}Kb1V>a2;}4}H8X^Dy 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