Class DiscordConfig

java.lang.Object
me.therealkeyis.models.DiscordConfig

public class DiscordConfig extends Object
Configuration object for the DiscordBot
  • Constructor Details

    • DiscordConfig

      public DiscordConfig(org.bukkit.configuration.file.FileConfiguration config, Logger log, Runnable saveConfig)
      Automatically builds configuration based on the Plugin configuration
      Parameters:
      config - The plugin configuration object
      log - The plugin logger
      saveConfig - A function that saves the current configuration to file
  • Method Details

    • getToken

      public String getToken()
      Provides the configured Discord API token
      Returns:
      A Discord API token
    • getTextChannelId

      public String getTextChannelId()
      Provides the configured default Discord text channel ID
      Returns:
      A Discord text channel ID
    • getVoiceChannelId

      public String getVoiceChannelId()
      Provides the configured default Discord voice channel ID
      Returns:
      A Discord voice channel ID
    • getCategory

      public String getCategory()
      Provides the configured default Discord voice category name
      Returns:
      A Discord category name
    • getServerId

      public String getServerId()
      Provides the configured server id
      Returns:
      A Discord server ID
    • getLogger

      public Logger getLogger()
      The plugin logger
      Returns:
      The plugin logger
    • setTextChannelId

      public void setTextChannelId(String textChannelId)
    • setVoiceChannelId

      public void setVoiceChannelId(String voiceChannelId)
    • setCategory

      public void setCategory(String category)
    • setLog

      public void setLog(Logger log)