From fc87556d8c0cc92b856ad682e4b3cbc964514eee Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 20 Oct 2021 20:14:01 -0400 Subject: teams reference rewrite --- .../net/tylermurphy/hideAndSeek/command/Reload.java | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java') diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java index 438ab26..e7ab942 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Reload.java @@ -1,29 +1,23 @@ package net.tylermurphy.hideAndSeek.command; import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; -import net.tylermurphy.hideAndSeek.Store; -import net.tylermurphy.hideAndSeek.util.Functions; -import net.tylermurphy.hideAndSeek.util.ICommand; +import net.tylermurphy.hideAndSeek.Main; +import net.tylermurphy.hideAndSeek.Config; -import static net.tylermurphy.hideAndSeek.Store.*; - -import java.util.HashMap; +import static net.tylermurphy.hideAndSeek.Config.*; public class Reload implements ICommand { public void execute(CommandSender sender, String[] args) { - if(!status.equals("Standby")) { + + if(!Main.plugin.status.equals("Standby")) { sender.sendMessage(errorPrefix + "Game is currently in session"); return; } - Store.loadConfig(); - try { - Functions.loadScoreboard(); - } catch(Exception e) {} + Config.loadConfig(); + Main.plugin.board.reload(); sender.sendMessage(messagePrefix + "Reloaded the config"); - playerList = new HashMap(); } public String getLabel() { -- cgit v1.2.3-freya