Class TemplateButtonConfig


  • public class TemplateButtonConfig
    extends Object
    The list of template button configurations
    • Constructor Detail

      • TemplateButtonConfig

        public TemplateButtonConfig​(org.bukkit.plugin.Plugin plugin)
    • Method Detail

      • setup

        public void setup()
        Set up the list
      • clear

        public void clear()
        Clear the list
      • reload

        public void reload()
        Reload the list
      • get

        public Optional<Map<String,​Object>> get​(String name)
        Get the config values of a template button
        Parameters:
        name - the name of the template button
        Returns:
        the values as map
      • getAllTemplateButtonNames

        public Collection<String> getAllTemplateButtonNames()
        Get the names of all registered template buttons
        Returns:
        the names