Add: Option to ask for money for an alias Add: Bypass to not have to pay anything Add: Placeholder [player] was added to the messages to show the player name who executed the alias
30 lines
1.4 KiB
Java
30 lines
1.4 KiB
Java
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;
|
|
import net.t2code.alias.Util;
|
|
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) {
|
|
T2CodeTemplate.sendInfo(sender, Util.getPrefix(),Util.getSpigot(),Util.getDiscord(),Main.autor,Main.version, UpdateAPI.PluginVersionen.get(Main.plugin.getName()).publicVersion);
|
|
}
|
|
|
|
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-------------------------------");
|
|
}
|
|
}
|