Class SlimefunCommand
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.commands.SlimefunCommand
- All Implemented Interfaces:
CommandExecutor,Listener
This
CommandExecutor holds the functionality of our /slimefun command.- Author:
- TheBusyBiscuit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a heatmap of how often certain commands are used.booleanonCommand(CommandSender sender, Command cmd, String label, String[] args) voidvoidregister()voidsendHelp(CommandSender sender)
-
Constructor Details
-
SlimefunCommand
Creates a new instance ofSlimefunCommand- Parameters:
plugin- The instance of ourSlimefun
-
-
Method Details
-
register
public void register() -
getPlugin
-
getCommandUsage
Returns a heatmap of how often certain commands are used.- Returns:
- A
Mapholding the amount of times each command was run
-
onCommand
- Specified by:
onCommandin interfaceCommandExecutor
-
sendHelp
-
onCommand
-
getSubCommandNames
- Returns:
- A
Listcontaining everySubCommand
-