Class PlayerHasCorrectGateKey
java.lang.Object
games.stendhal.server.entity.npc.condition.PlayerHasCorrectGateKey
- All Implemented Interfaces:
ChatCondition
,PreTransitionCondition
@Dev(category=IGNORE,
label="Key?")
public class PlayerHasCorrectGateKey
extends Object
implements ChatCondition
Checks to see if the player has a gate key that matches the identifier of the
raiser (usually the gate but can be any entity with the "identifier" attribute)
- Author:
- filipe
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PlayerHasCorrectGateKey
public PlayerHasCorrectGateKey()
-
-
Method Details
-
fire
Description copied from interface:PreTransitionCondition
can the transition be done?- Specified by:
fire
in interfaceChatCondition
- Specified by:
fire
in interfacePreTransitionCondition
- Parameters:
player
- player who caused the transitionsentence
- text he/she saidraiser
- the NPC doing the transition- Returns:
- true, if the transition is possible, false otherwise
-
hashCode
public int hashCode() -
equals
-