Class PlayerCommandAction

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

public class PlayerCommandAction extends NpcAction
Represents a player command action that can be executed when triggered by an NPC interaction.
  • Constructor Details

    • PlayerCommandAction

      public PlayerCommandAction()
  • Method Details

    • execute

      public void execute(@NotNull @NotNull ActionExecutionContext context, String value)
      Executes a player command action when triggered by an NPC interaction.
      Specified by:
      execute in class NpcAction
      Parameters:
      context - The context in which the action is being executed.
      value - The value associated with the action. Can be null if no value is required.