29 lines
1.3 KiB
Java
29 lines
1.3 KiB
Java
package net.t2code.alias.Spigot.cmdManagement;
|
|
|
|
import net.t2code.alias.Spigot.Main;
|
|
import net.t2code.alias.Spigot.config.config.Language;
|
|
import net.t2code.alias.Spigot.system.Load;
|
|
import net.t2code.alias.Util;
|
|
import net.t2code.t2codelib.SPIGOT.api.messages.T2Csend;
|
|
import net.t2code.t2codelib.SPIGOT.api.messages.T2Ctemplate;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class Commands {
|
|
public static void info(CommandSender sender) {
|
|
T2Ctemplate.sendInfo(sender, Main.getPlugin(), Util.getSpigotID(), Util.getDiscord(), Util.getInfoText());
|
|
}
|
|
|
|
public static void reload(CommandSender sender) {
|
|
if (sender instanceof Player) T2Csend.player((Player) sender, Language.reloadStart.value);
|
|
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
|
|
T2Csend.console(Util.getPrefix() + " §6Plugin reload...");
|
|
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
|
|
Load.loadReload();
|
|
if (sender instanceof Player) T2Csend.player((Player) sender, Language.reloadEnd.value);
|
|
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
|
|
T2Csend.console(Util.getPrefix() + " §2Plugin successfully reloaded.");
|
|
T2Csend.console(Util.getPrefix() + "§8-------------------------------");
|
|
}
|
|
}
|