Class RRDiscordBridge

java.lang.Object
io.github.dexrnzacattack.rrdiscordbridge.RRDiscordBridge

public class RRDiscordBridge extends Object
RRDiscordBridge's main common class
  • Field Details

    • instance

      public static RRDiscordBridge instance
      The static instance of RRDiscordBridge
    • logger

      public static ILogger logger
      The server's logger
    • logHandler

      public me.scarsz.jdaappender.ChannelLoggingHandler logHandler
      JDA's console logger
    • configDir

      public static ConfigDirectory configDir
      The config directory for the server software
  • Constructor Details

  • Method Details

    • getServerStartTime

      public static long getServerStartTime()
      Returns:
      The server start timestamp
    • initialize

      public RRDiscordBridge initialize()
      Initializes fields that require an instance of RRDiscordBridge to be not null
    • shutdown

      public void shutdown(boolean reloading)
      Sends a shutdown message and stops the Discord bot.
    • getVersion

      public static String getVersion()
      Returns:
      The plugin's version
    • getChatExtensions

      public ChatExtensions getChatExtensions()
      Returns:
      The instance of ChatExtensions
    • reload

      public void reload() throws IOException
      Throws:
      IOException
    • getSupportedFeatures

      public SupportedFeatures getSupportedFeatures()
      Returns:
      The current instance of SupportedFeatures
    • setSupportedFeatures

      public RRDiscordBridge setSupportedFeatures(SupportedFeatures features)
      Sets the current instance of SupportedFeatures with a new one
    • getServer

      public IServer getServer()
      Returns:
      The instance of server
    • getSettings

      public Settings getSettings()
      Returns:
      The instance of settings
    • getCommandRegistry

      public CommandRegistry getCommandRegistry()
      Returns:
      the instance of commandRegistry
    • getBot

      public DiscordBot getBot()
      Returns:
      the instance of bot