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
-
Method Summary
Modifier and TypeMethodDescriptionReturns a heatmap of how often certain commands are used.boolean
onCommand
(CommandSender sender, Command cmd, String label, String[] args) void
void
register()
void
sendHelp
(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
Map
holding the amount of times each command was run
-
onCommand
- Specified by:
onCommand
in interfaceCommandExecutor
-
sendHelp
-
onCommand
-
getSubCommandNames
- Returns:
- A
List
containing everySubCommand
-