Class PluginMessages

java.lang.Object
de.rexlcloud.proxy.common.config.PluginMessages

public class PluginMessages extends Object
The cloud's messages (configured in the master's config/messages.json) on a proxy.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.kyori.adventure.text.Component
    getMessage(de.rexlcloud.core.config.MessageKey messageKey)
     
    net.kyori.adventure.text.Component
    getMessage(de.rexlcloud.core.config.MessageKey messageKey, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... tagResolver)
     
    Optional<net.kyori.adventure.text.Component>
    The MOTD for the server list, depending on maintenance mode, or empty until the cloud sent its messages.
    void
    updateMessages(de.rexlcloud.core.config.PluginMessageConfig pluginMessageConfig)
    Internal: applies messages sent by the master.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PluginMessages

      public PluginMessages()
  • Method Details

    • getMessage

      public net.kyori.adventure.text.Component getMessage(de.rexlcloud.core.config.MessageKey messageKey)
      Returns:
      the message, rendered from MiniMessage
    • getMessage

      public net.kyori.adventure.text.Component getMessage(de.rexlcloud.core.config.MessageKey messageKey, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... tagResolver)
      Parameters:
      tagResolver - values for the placeholders, e.g. Placeholder.parsed("server", name)
      Returns:
      the message, rendered from MiniMessage
    • getMotd

      public Optional<net.kyori.adventure.text.Component> getMotd()
      The MOTD for the server list, depending on maintenance mode, or empty until the cloud sent its messages.
    • updateMessages

      public void updateMessages(de.rexlcloud.core.config.PluginMessageConfig pluginMessageConfig)
      Internal: applies messages sent by the master.
    • getInstance

      public static PluginMessages getInstance()