Class Placeholder

java.lang.Object
valorless.rarespawns.datamodels.Placeholder

public class Placeholder extends Object
Represents a placeholder key-value pair for dynamic text replacement in RareSpawns. Used for substituting variables in messages, lore, or other text fields.
  • Field Details

    • key

      public String key
      The placeholder key (e.g., %player%, %mob%, etc.).
    • value

      public String value
      The value to substitute for the placeholder key.
  • Constructor Details

    • Placeholder

      public Placeholder(String key, Object value)
      Constructs a Placeholder with the given key and value.
      Parameters:
      key - The placeholder key.
      value - The value to substitute (converted to String).