T2C-AutoResponse/src/main/java/net/t2code/autoresponse/Spigot/cmdManagement/Commands.java

29 lines
1.3 KiB
Java
Raw Normal View History

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;
2022-11-15 22:44:45 +00:00
import net.t2code.t2codelib.SPIGOT.api.messages.T2Csend;
import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate;
2022-01-27 08:04:30 +00:00
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class Commands {
public static void info(CommandSender sender) {
2022-11-15 22:44:45 +00:00
T2Ctemplate.sendInfo(sender,Main.getPlugin(),Util.getSpigotID(),Util.getDiscord(),Util.getInfoText());
2022-01-27 08:04:30 +00:00
}
public static void reload(CommandSender sender) {
if (sender instanceof Player) sender.sendMessage(SelectMessages.ReloadStart);
2022-11-15 22:44:45 +00:00
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
T2Csend.console(Util.getPrefix() + " §6Plugin reload...");
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
2022-01-27 08:04:30 +00:00
Load.loadReload();
if (sender instanceof Player) sender.sendMessage(SelectMessages.ReloadEnd);
2022-11-15 22:44:45 +00:00
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
T2Csend.console(Util.getPrefix() + " §2Plugin successfully reloaded.");
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
2022-01-27 08:04:30 +00:00
}
}