aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/Resurrection.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-06 11:49:01 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-06 11:49:01 -0600
commitdb5c24bc26e4d6a34ecd1ab9118f0f098eee3581 (patch)
treebfd1fa99cab5e90c5cd3e4555dc06d0a82164fe1 /src/net/brysonsteck/Resurrection/Resurrection.java
parenta6193c66185c069db9a8f9f7a7aca570ae55994b (diff)
downloadresurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar
resurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar.gz
resurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar.bz2
death event works, working on commands
Diffstat (limited to 'src/net/brysonsteck/Resurrection/Resurrection.java')
-rw-r--r--src/net/brysonsteck/Resurrection/Resurrection.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/Resurrection.java b/src/net/brysonsteck/Resurrection/Resurrection.java
new file mode 100644
index 0000000..2547e6c
--- /dev/null
+++ b/src/net/brysonsteck/Resurrection/Resurrection.java
@@ -0,0 +1,48 @@
+package net.brysonsteck.Resurrection;
+
+import net.brysonsteck.Resurrection.commands.CommandAbout;
+import org.bukkit.plugin.Plugin;
+import org.bukkit.plugin.java.JavaPlugin;
+
+public class Resurrection extends JavaPlugin {
+ public Plugin plugin = getPlugin(Resurrection.class);
+
+ //spigot things
+ @Override
+ public void onDisable() {
+ super.onDisable();
+ }
+
+ @Override
+ public void onEnable() {
+ super.onEnable();
+
+ // register listener
+ this.getServer().getPluginManager().registerEvents(new PlayerListener(), this);
+
+ // register commands
+ this.getCommand("about").setExecutor(new CommandAbout());
+
+ System.out.println("Resurrection: I'm alive!");
+ }
+
+ // end of spigot things
+ public static void main(String[] args) {
+// PlayerData playerData = new PlayerData();
+// playerData.saveData("This is the first line\nthis is the second line");
+// System.out.println(playerData.getPlayers());
+// playerData.readData();
+
+// playerData.saveData("username,false,0");
+// System.out.println("now adding two more lines");
+// playerData.saveData(playerData.getPlayers() + "this is the third line\nthis is the fourth line\nthe thread is now sleeping\nonce more\nand again");
+// System.out.println(playerData.getPlayers());
+// try {
+// Thread.sleep(100000);
+// } catch (InterruptedException e) {
+// e.printStackTrace();
+// }
+
+ }
+
+}