Class ConsoleCommandAction

java.lang.Object
de.oliver.fancynpcs.api.actions.NpcAction
de.oliver.fancynpcs.api.actions.types.ConsoleCommandAction

public class ConsoleCommandAction extends NpcAction
Represents a console command action that can be executed for an NPC.
  • Constructor Details

    • ConsoleCommandAction

      public ConsoleCommandAction()
  • Method Details

    • execute

      public void execute(@NotNull @NotNull ActionExecutionContext context, String value)
      Executes the console command action for an NPC.
      Specified by:
      execute in class NpcAction
      Parameters:
      context - The context in which the action is being executed.
      value - The command string to be executed. The value can contain the placeholder "{player}" which will be replaced with the player's name.