2022-01-27 08:04:30 +00:00
|
|
|
package net.t2code.autoresponse.Spigot.cmdManagement;
|
|
|
|
|
|
|
|
import net.t2code.autoresponse.Util;
|
|
|
|
import net.t2code.autoresponse.Spigot.config.languages.SelectMessages;
|
|
|
|
import net.t2code.autoresponse.Spigot.system.Load;
|
|
|
|
import net.t2code.autoresponse.Spigot.Main;
|
|
|
|
import net.t2code.lib.Spigot.Lib.messages.T2CodeTemplate;
|
|
|
|
import net.t2code.lib.Spigot.Lib.messages.send;
|
|
|
|
import net.t2code.lib.Spigot.Lib.update.UpdateAPI;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
public class Commands {
|
|
|
|
public static void info(CommandSender sender) {
|
2022-07-25 22:46:29 +00:00
|
|
|
T2CodeTemplate.sendInfo(sender, Util.getPrefix(),Util.getSpigot(),Util.getDiscord(), Main.getAutor(),Main.getVersion(), UpdateAPI.PluginVersionen.get(Main.getPlugin().getName()).publicVersion);
|
2022-01-27 08:04:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void reload(CommandSender sender) {
|
|
|
|
if (sender instanceof Player) sender.sendMessage(SelectMessages.ReloadStart);
|
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
|
|
|
send.console(Util.getPrefix() + " §6Plugin reload...");
|
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
|
|
|
Load.loadReload();
|
|
|
|
if (sender instanceof Player) sender.sendMessage(SelectMessages.ReloadEnd);
|
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
|
|
|
send.console(Util.getPrefix() + " §2Plugin successfully reloaded.");
|
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
|
|
|
}
|
|
|
|
}
|