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 Summary
ConstructorDescriptionSendPrivateMessageAction(NotificationType type, String text)
Creates a new SendPrivateMessageAction - does NOT work with portalsSendPrivateMessageAction(String text)
Creates a new SendPrivateMessageAction. -
Method Summary
-
Constructor Details
-
SendPrivateMessageAction
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 sendtype
- type of message
-
-
Method Details
-
fire
Description copied from interface:PostTransitionAction
does some action after a transition.- Specified by:
fire
in interfaceChatAction
- Specified by:
fire
in interfacePostTransitionAction
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidraiser
- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-