allowing out folder for now

This commit is contained in:
Bryson Steck 2021-06-06 00:15:30 -06:00
parent 6b9e7b28e5
commit d308671441
15 changed files with 32 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
.idea/ .idea/
out/
Resurrection.iml Resurrection.iml

Binary file not shown.

View file

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: Resurrection

View file

@ -0,0 +1,3 @@
main: net.brysonsteck.Resurrection
name: Resurrection
version: alpha 0.0.1

3
src/META-INF/MANIFEST.MF Normal file
View file

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: Resurrection

View 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);
}
}

View file

@ -8,7 +8,7 @@ import java.io.*;
import java.nio.Buffer; import java.nio.Buffer;
public class Resurrection extends JavaPlugin { public class Resurrection extends JavaPlugin {
public Plugin plugin = getPlugin(Resurrection.class); // public Plugin plugin = getPlugin(Resurrection.class);
//spigot things //spigot things
@Override @Override
@ -19,7 +19,7 @@ public class Resurrection extends JavaPlugin {
@Override @Override
public void onEnable() { public void onEnable() {
super.onEnable(); super.onEnable();
System.out.println("I'm alive!");
} }
// end of spigot things // end of spigot things

View file

@ -0,0 +1,3 @@
main: net.brysonsteck.Resurrection
name: Resurrection
version: alpha 0.0.1