Class Plugin.Builder

  • Enclosing class:
    Plugin

    public static class Plugin.Builder
    extends Object
    • Method Detail

      • addDatabaseMappingRessources

        public Plugin.Builder addDatabaseMappingRessources​(String resource,
                                                           String... more)
        Adds one or more resource paths where database mapping files are located.
        Parameters:
        resource - the first resource
        more - other resources
        Returns:
        this builder
      • addGuildSettingsEntry

        public Plugin.Builder addGuildSettingsEntry​(String key,
                                                    GuildSettingsEntry<?,​?> entry)
        Adds a new entry to guild settings.
        Parameters:
        key - the key of the entry
        entry - the entry itself
        Returns:
        this builder
      • setCommandProvider

        public Plugin.Builder setCommandProvider​(CommandProvider commandProvider)
        Sets the command provider for this plugin.
        Parameters:
        commandProvider - the command provider
        Returns:
        this builder
      • build

        public Plugin build()
        Builds the plugin instance.
        Returns:
        the plugin instance