UHC-Core/src/main/java/net/mindoverflow/network/uhccore/commands/uhccommands/ReloadCommand.java

23 lines
771 B
Java
Raw Normal View History

2020-04-09 18:23:36 +02:00
package net.mindoverflow.network.uhccore.commands.uhccommands;
import net.mindoverflow.network.uhccore.utils.Debugger;
import net.mindoverflow.network.uhccore.utils.configuration.FileUtils;
2020-04-09 18:23:36 +02:00
import org.bukkit.command.CommandSender;
import java.util.logging.Level;
public class ReloadCommand
{
private static Debugger debugger = new Debugger(ReloadCommand.class.getName());
public static void reloadCommand(CommandSender commandSender)
{
debugger.sendDebugMessage(Level.INFO, "Reloading YAMLS...");
commandSender.sendMessage("Reloading YAMLs...");
FileUtils.checkFiles();
FileUtils.reloadYamls();
commandSender.sendMessage("Reloaded YAMLs!");
debugger.sendDebugMessage(Level.INFO, "Reloaded YAMLs!");
}
}