2020-04-09 18:23:36 +02:00
|
|
|
package net.mindoverflow.network.uhccore.commands.uhccommands;
|
|
|
|
|
|
|
|
import net.mindoverflow.network.uhccore.utils.Debugger;
|
2021-01-10 00:48:42 +01:00
|
|
|
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!");
|
|
|
|
}
|
|
|
|
}
|