From 0dd474ce86d35528ea6af476590d6c1cb628264c Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sun, 4 Sep 2016 23:08:57 -0400 Subject: [PATCH] edited stuff --- src/iie/HelloWorld.java | 1 - src/iie/HelloWorldPlugin.java | 36 +++++++++++++++-------------------- 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/src/iie/HelloWorld.java b/src/iie/HelloWorld.java index dc91d63..be0e354 100644 --- a/src/iie/HelloWorld.java +++ b/src/iie/HelloWorld.java @@ -1,7 +1,6 @@ package iie; import org.bukkit.Location; -import org.bukkit.Sound; import org.bukkit.World; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; diff --git a/src/iie/HelloWorldPlugin.java b/src/iie/HelloWorldPlugin.java index a7fe954..ed1e3b7 100644 --- a/src/iie/HelloWorldPlugin.java +++ b/src/iie/HelloWorldPlugin.java @@ -8,31 +8,25 @@ import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.scoreboard.Objective; import org.bukkit.scoreboard.Scoreboard; +import alisolarflare.RandomTP; public class HelloWorldPlugin extends JavaPlugin { - + public static Scoreboard board; - public static Objective hardcoreTimeDead; - public static AbstractMap deathMap = new HashMap(); - - public void onEnable(){ - - - board = Bukkit.getServer().getScoreboardManager().getMainScoreboard(); - if (board.getObjective("hardcoreTimeDead") != null){ - hardcoreTimeDead = board.getObjective("hardcoreTimeDead"); - }else{ - hardcoreTimeDead = board.registerNewObjective("hardcoreTimeDead", "dummy"); - } - + public static Objective hardcoreTimeDead; + public static AbstractMap deathMap = new HashMap(); + + public void onEnable() { registerCommands(); - getServer().getPluginManager().registerEvents(new JoinListener(this), this); getServer().getPluginManager().registerEvents(new DeathListener(this), this); - - - } - public void registerCommands(){ - getCommand("hardcore").setExecutor(new HelloWorld(this)); + board = Bukkit.getServer().getScoreboardManager().getMainScoreboard(); + if (board.getObjective("hardcoreTimeDead") == null) + hardcoreTimeDead = board.registerNewObjective("hardcoreTimeDead", "dummy"); } -} \ No newline at end of file + public void registerCommands() { + getCommand("HelloWorld").setExecutor(new HelloWorld(this)); + getCommand("debugRTP").setExecutor(new RandomTP(this)); + } + +}