Class PlayerHasEarningsToCollectCondition

java.lang.Object
games.stendhal.server.maps.semos.tavern.market.PlayerHasEarningsToCollectCondition
All Implemented Interfaces:
ChatCondition, PreTransitionCondition

public class PlayerHasEarningsToCollectCondition extends Object implements ChatCondition
Check if a player has collectable earnings in the market managed by the manager NPC
Author:
madmetzger
  • Constructor Details

    • PlayerHasEarningsToCollectCondition

      public PlayerHasEarningsToCollectCondition()
  • Method Details

    • fire

      public boolean fire(Player player, Sentence sentence, Entity npc)
      Description copied from interface: PreTransitionCondition
      can the transition be done?
      Specified by:
      fire in interface ChatCondition
      Specified by:
      fire in interface PreTransitionCondition
      Parameters:
      player - player who caused the transition
      sentence - text he/she said
      npc - the NPC doing the transition
      Returns:
      true, if the transition is possible, false otherwise