Class MessageAction

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

public class MessageAction extends NpcAction
The MessageAction class represents an action that sends a message to the player when executed by an NPC.
  • Constructor Details

    • MessageAction

      public MessageAction()
  • Method Details

    • execute

      public void execute(@NotNull @NotNull ActionExecutionContext context, String value)
      Executes the action associated with this NpcAction.
      Specified by:
      execute in class NpcAction
      Parameters:
      context - The context in which the action is being executed.
      value - The value passed to the action.