From 8624563a2bb4e2fffa18a2b66e775650d93b1cd7 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 22 Oct 2016 20:08:46 -0400 Subject: [PATCH] very minor reformatting of mainplugin --- src/iie/HelloWorldPlugin.java | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/iie/HelloWorldPlugin.java b/src/iie/HelloWorldPlugin.java index 6785820..3028230 100644 --- a/src/iie/HelloWorldPlugin.java +++ b/src/iie/HelloWorldPlugin.java @@ -26,25 +26,22 @@ public class HelloWorldPlugin extends JavaPlugin { public static AbstractMap deathMap = new HashMap(); public void onEnable(){ - - iie = Bukkit.getServer().getOfflinePlayer((UUID) UUID.fromString("633d0de1-4a67-46ff-bd8a-004fa8ce4858")).getPlayer(); - + board = Bukkit.getServer().getScoreboardManager().getMainScoreboard(); - if (board.getObjective("hardcoreTimeDead") != null){ //null check hardcoreTimeDead + if (board.getObjective("hardcoreTimeDead") != null) //null check hardcoreTimeDead hardcoreTimeDead = board.getObjective("hardcoreTimeDead"); - }else{ + else hardcoreTimeDead = board.registerNewObjective("hardcoreTimeDead", "dummy"); - } - if (board.getObjective("hardcoreInvite") != null){ //null check hardcoreInvite + + if (board.getObjective("hardcoreInvite") != null) //null check hardcoreInvite hardcoreInvite = board.getObjective("hardcoreInvite"); - }else{ + else hardcoreInvite = board.registerNewObjective("hardcoreInvite", "dummy"); - } - if (board.getObjective("hardcoreOutBound") != null){ //null check hardcoreOutBound + + if (board.getObjective("hardcoreOutBound") != null) //null check hardcoreOutBound hardcoreOutBound = board.getObjective("hardcoreOutBound"); - }else{ + else hardcoreOutBound = board.registerNewObjective("hardcoreOutBound", "dummy"); - } registerCommands(); getServer().getPluginManager().registerEvents(new JoinListener(this), this);