Class GuaranteedDelayedPlayerTextSender
java.lang.Object
games.stendhal.server.core.events.DelayedPlayerTextSender
games.stendhal.server.core.events.GuaranteedDelayedPlayerTextSender
- All Implemented Interfaces:
TurnListener
Sends a private message to a player after a short delay, and if they weren't online, uses postman
- Author:
- kymara
-
Field Summary
Fields inherited from class games.stendhal.server.core.events.DelayedPlayerTextSender
message, player, type -
Constructor Summary
ConstructorsConstructorDescriptionGuaranteedDelayedPlayerTextSender(String source, Player player, String message, int seconds) Creates a new GuaranteedDelayedPlayerTextSender. -
Method Summary
Modifier and TypeMethodDescriptionvoidonTurnReached(int currentTurn) This method is called when the turn number is reached.
-
Constructor Details
-
GuaranteedDelayedPlayerTextSender
Creates a new GuaranteedDelayedPlayerTextSender.- Parameters:
source-player-message-seconds-
-
-
Method Details
-
onTurnReached
public void onTurnReached(int currentTurn) Description copied from interface:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Overrides:
onTurnReachedin classDelayedPlayerTextSender- Parameters:
currentTurn- current turn number
-