Package com.ultikits.ultitools.commands
Class PluginInstallCommands
java.lang.Object
com.ultikits.ultitools.abstracts.AbstractCommandExecutor
com.ultikits.ultitools.commands.PluginInstallCommands
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
@CmdExecutor(description="UltiTools Plugin Management Commands",
alias="upm",
requireOp=true)
public class PluginInstallCommands
extends AbstractCommandExecutor
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ultikits.ultitools.abstracts.AbstractCommandExecutor
AbstractCommandExecutor.CoolDownTickResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckUpdates(org.bukkit.command.CommandSender sender) protected voidhandleHelp(org.bukkit.command.CommandSender sender) Abstract method that handles the help command.voidinstallPlugin(org.bukkit.command.CommandSender sender, String plugin) voidinstallPlugin(org.bukkit.command.CommandSender sender, String plugin, String version) voidlistPlugins(org.bukkit.command.CommandSender sender) voidlistPlugins(org.bukkit.command.CommandSender sender, String page) voidlistVersions(org.bukkit.command.CommandSender sender, String plugin) (package private) static voidsendComponentMessage(org.bukkit.entity.Player player, net.kyori.adventure.text.TextComponent text) Send a TextComponent message to a player.(package private) static voidsendStringMessage(org.bukkit.command.CommandSender sender, String message) Send a string message to a command sender.voiduninstallPlugin(org.bukkit.command.CommandSender sender, String plugin) private voidupdateAllPlugins(org.bukkit.command.CommandSender sender) voidupdatePlugin(org.bukkit.command.CommandSender sender, String pluginName) Methods inherited from class com.ultikits.ultitools.abstracts.AbstractCommandExecutor
executeMethodWithLock, getHelpCommand, getInstance, onCommand, onTabComplete, processCoolDownTick, sendErrorMessage, suggest
-
Constructor Details
-
PluginInstallCommands
public PluginInstallCommands()
-
-
Method Details
-
listPlugins
-
sendComponentMessage
static void sendComponentMessage(org.bukkit.entity.Player player, net.kyori.adventure.text.TextComponent text) Send a TextComponent message to a player. This method is extracted from BukkitRunnable for testability.- Parameters:
player- the player to send the message totext- the text component to send
-
sendStringMessage
Send a string message to a command sender. This method is extracted from BukkitRunnable for testability.- Parameters:
sender- the sender to send the message tomessage- the message to send
-
listPlugins
public void listPlugins(org.bukkit.command.CommandSender sender) -
installPlugin
-
installPlugin
-
listVersions
-
uninstallPlugin
-
checkUpdates
public void checkUpdates(org.bukkit.command.CommandSender sender) -
updatePlugin
-
updateAllPlugins
private void updateAllPlugins(org.bukkit.command.CommandSender sender) -
handleHelp
protected void handleHelp(org.bukkit.command.CommandSender sender) Description copied from class:AbstractCommandExecutorAbstract method that handles the help command.处理帮助命令的抽象方法。
- Specified by:
handleHelpin classAbstractCommandExecutor- Parameters:
sender- The sender of the command.
命令的发送者。
-