Class SendPrivateMessageAction

java.lang.Object
games.stendhal.server.entity.npc.action.SendPrivateMessageAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

@Dev(category=CHAT, label="Message") public class SendPrivateMessageAction extends Object implements ChatAction
Sends the message as a private text Optional notification type when used with NPCs
  • Constructor Details

    • SendPrivateMessageAction

      public SendPrivateMessageAction(String text)
      Creates a new SendPrivateMessageAction.
      Parameters:
      text - text to send
    • SendPrivateMessageAction

      @Dev public SendPrivateMessageAction(@Dev(defaultValue="SERVER") NotificationType type, String text)
      Creates a new SendPrivateMessageAction - does NOT work with portals
      Parameters:
      text - text to send
      type - type of message
  • Method Details