2021-12-21 04:55:23 +00:00
|
|
|
package net.t2code.alias.Spigot.cmdManagement;
|
|
|
|
|
|
|
|
import net.t2code.alias.Spigot.Main;
|
|
|
|
import net.t2code.alias.Spigot.config.languages.SelectMessages;
|
|
|
|
import net.t2code.alias.Spigot.system.Load;
|
2022-01-29 18:08:14 +00:00
|
|
|
import net.t2code.alias.Util;
|
2021-12-21 04:55:23 +00:00
|
|
|
import net.t2code.lib.Spigot.Lib.messages.T2CodeTemplate;
|
|
|
|
import net.t2code.lib.Spigot.Lib.messages.send;
|
|
|
|
import net.t2code.lib.Spigot.Lib.update.UpdateAPI;
|
2022-07-07 11:48:08 +00:00
|
|
|
import org.bukkit.Bukkit;
|
2021-12-21 04:55:23 +00:00
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
public class Commands {
|
|
|
|
public static void info(CommandSender sender) {
|
2022-07-07 11:48:08 +00:00
|
|
|
T2CodeTemplate.sendInfo(sender, Util.getPrefix(), Util.getSpigot(), Util.getDiscord(), Main.getAutor(), Main.getVersion(),
|
|
|
|
UpdateAPI.PluginVersionen.get(Main.getPlugin().getName()).publicVersion);
|
2021-12-21 04:55:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void reload(CommandSender sender) {
|
2022-06-07 04:33:57 +00:00
|
|
|
if (sender instanceof Player) sender.sendMessage(SelectMessages.reloadStart);
|
2022-01-29 18:08:14 +00:00
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
|
|
|
send.console(Util.getPrefix() + " §6Plugin reload...");
|
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
2022-07-07 11:48:08 +00:00
|
|
|
Main.getPlugin().onEnable();
|
2022-06-07 04:33:57 +00:00
|
|
|
if (sender instanceof Player) sender.sendMessage(SelectMessages.reloadEnd);
|
2022-01-29 18:08:14 +00:00
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
|
|
|
send.console(Util.getPrefix() + " §2Plugin successfully reloaded.");
|
|
|
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
2021-12-21 04:55:23 +00:00
|
|
|
}
|
|
|
|
}
|