Class MRarity.MScam

java.lang.Object
com.olziedev.nightmarket.api.market.MRarity.MScam
Enclosing class:
MRarity

public abstract static class MRarity.MScam extends Object
Represents a scam provider that can be used to get a scam for an item.
  • Constructor Details

    • MScam

      public MScam()
  • Method Details

    • getScamChance

      public abstract double getScamChance()
      Returns:
      Returns the chance of a scam occurring.
    • isRefundPrice

      public abstract boolean isRefundPrice()
      Returns:
      Returns if the scam should refund the price.
    • shouldScam

      public abstract boolean shouldScam()
      Returns:
      Returns if the scam should occur based on the chance.