diff --git a/src/main/java/one/eim/gravitycontrol/ReloadCommand.java b/src/main/java/one/eim/gravitycontrol/ReloadCommand.java deleted file mode 100644 index b03b1d0..0000000 --- a/src/main/java/one/eim/gravitycontrol/ReloadCommand.java +++ /dev/null @@ -1,28 +0,0 @@ -package one.eim.gravitycontrol; - -import net.kyori.adventure.text.Component; -import net.kyori.adventure.text.format.NamedTextColor; -import org.bukkit.command.Command; -import org.bukkit.command.CommandExecutor; -import org.bukkit.command.CommandSender; - -public class ReloadCommand implements CommandExecutor { - private static final Component prefix = Component.text("[", NamedTextColor.GRAY) - .append(Component.text("GravityControl", NamedTextColor.DARK_GRAY)) - .append(Component.text("]", NamedTextColor.GRAY)) - .append(Component.space()); - private final GravityControl plugin; - - public ReloadCommand(GravityControl plugin) { - this.plugin = plugin; - } - - @Override - public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { - sender.sendMessage(prefix.append(Component.text("Attempting to reload configuration...", NamedTextColor.WHITE))); - this.plugin.reloadConfig(); - this.plugin.config = new Configuration(this.plugin, this.plugin.getConfig()); - sender.sendMessage(prefix.append(Component.text("Successfully reloaded configuration!", NamedTextColor.GREEN))); - return true; - } -}