allowing out folder for now
This commit is contained in:
parent
6b9e7b28e5
commit
d308671441
15 changed files with 32 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,3 @@
|
|||
.idea/
|
||||
out/
|
||||
|
||||
Resurrection.iml
|
||||
|
|
BIN
out/artifacts/Resurrection_jar/Resurrection.jar
Normal file
BIN
out/artifacts/Resurrection_jar/Resurrection.jar
Normal file
Binary file not shown.
BIN
out/production/DeadForADay/net/brysonsteck/DeadForADay.class
Normal file
BIN
out/production/DeadForADay/net/brysonsteck/DeadForADay.class
Normal file
Binary file not shown.
BIN
out/production/DeadForADay/net/brysonsteck/PlayerData.class
Normal file
BIN
out/production/DeadForADay/net/brysonsteck/PlayerData.class
Normal file
Binary file not shown.
0
out/production/DeadForADay/net/brysonsteck/plugin.yml
Normal file
0
out/production/DeadForADay/net/brysonsteck/plugin.yml
Normal file
3
out/production/Resurrection/META-INF/MANIFEST.MF
Normal file
3
out/production/Resurrection/META-INF/MANIFEST.MF
Normal file
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: Resurrection
|
||||
|
Binary file not shown.
BIN
out/production/Resurrection/net/brysonsteck/PlayerData.class
Normal file
BIN
out/production/Resurrection/net/brysonsteck/PlayerData.class
Normal file
Binary file not shown.
BIN
out/production/Resurrection/net/brysonsteck/PlayerListener.class
Normal file
BIN
out/production/Resurrection/net/brysonsteck/PlayerListener.class
Normal file
Binary file not shown.
BIN
out/production/Resurrection/net/brysonsteck/Resurrection.class
Normal file
BIN
out/production/Resurrection/net/brysonsteck/Resurrection.class
Normal file
Binary file not shown.
3
out/production/Resurrection/net/brysonsteck/plugin.yml
Normal file
3
out/production/Resurrection/net/brysonsteck/plugin.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
main: net.brysonsteck.Resurrection
|
||||
name: Resurrection
|
||||
version: alpha 0.0.1
|
3
src/META-INF/MANIFEST.MF
Normal file
3
src/META-INF/MANIFEST.MF
Normal file
|
@ -0,0 +1,3 @@
|
|||
Manifest-Version: 1.0
|
||||
Main-Class: Resurrection
|
||||
|
17
src/net/brysonsteck/PlayerListener.java
Normal file
17
src/net/brysonsteck/PlayerListener.java
Normal file
|
@ -0,0 +1,17 @@
|
|||
package net.brysonsteck;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.PlayerDeathEvent;
|
||||
|
||||
public class PlayerListener implements Listener {
|
||||
@EventHandler
|
||||
public void onDeath(PlayerDeathEvent e) {
|
||||
Player p = e.getEntity();
|
||||
Long timeOfDeath = System.currentTimeMillis();
|
||||
Long resurrectionTime = timeOfDeath + 86400000;
|
||||
|
||||
p.sendMessage("You have died at " + timeOfDeath + ". You will respawn at " + resurrectionTime);
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@ import java.io.*;
|
|||
import java.nio.Buffer;
|
||||
|
||||
public class Resurrection extends JavaPlugin {
|
||||
public Plugin plugin = getPlugin(Resurrection.class);
|
||||
// public Plugin plugin = getPlugin(Resurrection.class);
|
||||
|
||||
//spigot things
|
||||
@Override
|
||||
|
@ -19,7 +19,7 @@ public class Resurrection extends JavaPlugin {
|
|||
@Override
|
||||
public void onEnable() {
|
||||
super.onEnable();
|
||||
|
||||
System.out.println("I'm alive!");
|
||||
}
|
||||
|
||||
// end of spigot things
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
main: net.brysonsteck.Resurrection
|
||||
name: Resurrection
|
||||
version: alpha 0.0.1
|
Loading…
Add table
Reference in a new issue