Constructor and Description |
---|
CommandAction(String command,
boolean asConsole,
boolean asOperator)
Instantiates a new CommandAction.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Interaction interaction,
org.bukkit.entity.Player player,
boolean primaryTrigger)
Executes the action for the given player in the given interaction.
|
public CommandAction(String command, boolean asConsole, boolean asOperator)
command
- the commandasConsole
- whether to run the command as consoleasOperator
- whether to run the command as if the player was an operatorpublic void execute(Interaction interaction, org.bukkit.entity.Player player, boolean primaryTrigger)
Action
Copyright © 2021. All rights reserved.