Class BoughtNumberOfCondition

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

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

    • BoughtNumberOfCondition

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

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

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

      public BoughtNumberOfCondition(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