Package com.mrivanplays.jdcf.builtin
Class CommandPrefix
- java.lang.Object
-
- com.mrivanplays.jdcf.Command
-
- com.mrivanplays.jdcf.builtin.CommandPrefix
-
@CommandDescription("Performs an action for the bot\'s command prefix, depending on what arguments are being specified.") @CommandUsage("prefix (set [new prefix])") @CommandAliases("prefix") @MarkGuildOnly public class CommandPrefix extends Command
-
-
Constructor Summary
Constructors Constructor Description CommandPrefix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(@NotNull CommandExecutionContext context, @NotNull CommandArguments args)
JDCF calls this method when the command was triggered from a message.-
Methods inherited from class com.mrivanplays.jdcf.Command
hasPermission
-
-
-
-
Method Detail
-
execute
public boolean execute(@NotNull @NotNull CommandExecutionContext context, @NotNull @NotNull CommandArguments args)
Description copied from class:Command
JDCF calls this method when the command was triggered from a message. This will always happen when the command name was prefixed with the bot's prefix. According to settings inCommandManager
it also might happen when the bot was mentioned except of the bot prefix. Also according to settings inCommandManager
prefixes may vary between servers.
-
-