Class ConfigRewardPool.Entry

java.lang.Object
co.crystaldev.alpinecore.framework.config.object.ConfigRewardPool.Entry
Enclosing class:
ConfigRewardPool

public static class ConfigRewardPool.Entry extends Object
Represents a possible reward.
  • Constructor Details

    • Entry

      public Entry(@NotNull @NotNull String name, double chance, @NotNull @NotNull List<String> commands)
      Parameters:
      name - The display name
      chance - The chance of this reward being drawn
      commands - The commands to execute when this reward is drawn
  • Method Details

    • executeCommands

      protected void executeCommands(Map<String,Object> placeholders)