Class SoldNumberOfCondition

java.lang.Object
games.stendhal.server.core.rp.achievement.condition.SoldNumberOfCondition
All Implemented Interfaces:
ChatCondition, PreTransitionCondition

public class SoldNumberOfCondition extends Object implements ChatCondition
Checks if a player has sold a number of items.
  • Constructor Details

    • SoldNumberOfCondition

      public SoldNumberOfCondition(String itemName, int count)
      Constructor to check a single item.
      Parameters:
      itemName - Name of the item.
      count - Minimum required amount.
    • SoldNumberOfCondition

      public SoldNumberOfCondition(int count, String... itemName)
      Constructor to check multiple items.
      Parameters:
      count - Minimum required amount.
      itemName - Names of the items.
    • SoldNumberOfCondition

      public SoldNumberOfCondition(int count, List<String> items)
      Constructor to check multiple items.
      Parameters:
      count - Minimum required amount.
      items - List of item names.
    • SoldNumberOfCondition

      public SoldNumberOfCondition(Map<String,​Integer> items)
      Constructor to check multiple items of different amounts.
      Parameters:
      items - List of item & the minimum required amount for each.
  • Method Details