Interface UpgradeShopLayoutHandler


public interface UpgradeShopLayoutHandler
  • Method Details

    • build

      Gets called when layout is getting opened or when a player changed the page.

      This method is being called on a separate thread!

      Parameters:
      event - The event of it containing information
      Returns:
      The GUI that shall be shown to the player
    • readConfigProperties

      default void readConfigProperties(ConfigurationSection section)
      Read the user-defined configurations from the layouts config file.
      Parameters:
      section - The section that you previously added your configs into
      See Also:
    • writeConfigProperties

      default void writeConfigProperties(ConfigurationSection section)
      Write the user-defined configurations into the layouts config file.

      Make sure to set the values as the values that were previously read using #readConfigs(ConfigurationSection) to make sure they stay with an update. If it hasn't been called before, set your default values.

      Parameters:
      section - Write your stuff into this section