Class ConsoleAction
java.lang.Object
io.github.lucfr1746.llibrary.action.Action
io.github.lucfr1746.llibrary.action.list.ConsoleAction
Represents an action that executes a console command.
-
Constructor Summary
ConstructorsConstructorDescriptionConsoleAction
(String command) Constructs a new ConsoleAction with the specified command. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.bukkit.entity.Player target) Executes the console command, replacing placeholders if PlaceholderAPI is enabled.Gets the command to be executed.
-
Constructor Details
-
ConsoleAction
Constructs a new ConsoleAction with the specified command.- Parameters:
command
- The command to be executed by the console.
-
-
Method Details
-
getCommand
Gets the command to be executed.- Returns:
- The command as a string.
-
execute
public void execute(org.bukkit.entity.Player target) Executes the console command, replacing placeholders if PlaceholderAPI is enabled.
-