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
ConstructorsConstructorDescriptionSendPrivateMessageAction(NotificationType type, String text) Creates a new SendPrivateMessageAction - does NOT work with portalsCreates 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:PostTransitionActiondoes some action after a transition.- Specified by:
firein interfaceChatAction- Specified by:
firein interfacePostTransitionAction- Parameters:
player- player who caused the transitionsentence- text he/she saidraiser- the NPC doing the transition
-
toString
-
hashCode
public int hashCode() -
equals
-