Class PluginConfig

java.lang.Object
pro.cloudnode.smp.cloudnodemsg.PluginConfig

public final class PluginConfig extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • incoming

      @NotNull public @NotNull Component incoming(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull Component message)
      Incoming message format (recipient's point of view)

      Placeholders:

      • <sender> - the username of the message sender
      • <recipient> - the username of the message recipient
      • <message> - the message text
      Parameters:
      sender - The username of the message sender
      recipient - The username of the message recipient
      message - The message text
    • outgoing

      @NotNull public @NotNull Component outgoing(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull Component message)
      Outgoing message format (sender's point of view)

      Placeholders:

      • <sender> - the username of the message sender
      • <recipient> - the username of the message recipient
      • <message> - the message text
      Parameters:
      sender - The username of the message sender
      recipient - The username of the message recipient
      message - The message text
    • team

      @NotNull public @NotNull Component team(@NotNull @NotNull String sender, @NotNull @NotNull Team team, @NotNull @NotNull Component message)
      Team message

      Uses the vanilla teams from `/team`

      Placeholders:

      • <sender> - the username of the message sender
      • <team> - team
      • <message> - the message text
      Parameters:
      sender - The username of the message sender
      team - The team
      message - The message text
    • spy

      @NotNull public @NotNull Component spy(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull Component message)
      Private message format as seen by people with the spy permission and console

      Placeholders:

      • <sender> - the username of the message sender
      • <recipient> - the username of the message recipient
      • <message> - the message text
      Parameters:
      sender - The username of the message sender
      recipient - The username of the message recipient
      message - The message text
    • teamSpy

      @NotNull public @NotNull Component teamSpy(@NotNull @NotNull String sender, @NotNull @NotNull Team team, @NotNull @NotNull Component message)
      Team message format as seen by people with the spy permission and console

      Placeholders:

      • <sender> - the username of the message sender
      • <team> - team
      • <message> - the message text
      Parameters:
      sender - The username of the message sender
      team - The team
      message - The message text
    • ignored

      @NotNull public @NotNull Component ignored(@NotNull @NotNull String player)
      Player has successfully been ignored

      Placeholders:

      • <player> - the username of the player
      Parameters:
      player - The username of the player
    • unignored

      @NotNull public @NotNull Component unignored(@NotNull @NotNull String player)
      Player has successfully been unignored

      Placeholders:

      • <player> - the username of the player
      Parameters:
      player - The username of the player
    • channelCreated

      @NotNull public @NotNull Component channelCreated(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull String command)
      Message channel created

      Placeholders:

      • <sender> - the username of the message sender
      • <recipient> - the username of the message recipient
      • <command> - the command used, e.g. `msg`, `dm`, etc.
      Parameters:
      sender - The username of the message sender
      recipient - The username of the message recipient
      command - The command used, e.g. `msg`, `dm`, etc.
    • channelClosed

      @NotNull public @NotNull Component channelClosed(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull String command)
      Message channel closed

      Placeholders:

      • <sender> - the username of the message sender
      • <recipient> - the username of the message recipient
      • <command> - the command used, e.g. `msg`, `dm`, etc.
      Parameters:
      sender - The username of the message sender
      recipient - The username of the message recipient
      command - The command used, e.g. `msg`, `dm`, etc.
    • channelOffline

      @NotNull public @NotNull Component channelOffline(@NotNull @NotNull String sender, @NotNull @NotNull String recipient)
      Message channel player is offline and channel closed

      Placeholders:

      • <sender> - the username of the message sender
      • <recipient> - the username of the message recipient
      Parameters:
      sender - The username of the message sender
      recipient - The username of the message recipient
    • channelTeamCreated

      @NotNull public @NotNull Component channelTeamCreated(@NotNull @NotNull String sender, @NotNull @NotNull Team team)
      Team chat channel created

      Placeholders:

      • <sender> - the username of the message sender
      • <team> - team
      Parameters:
      sender - The username of the message sender
      team - The team@
    • channelTeamClosed

      @NotNull public @NotNull Component channelTeamClosed(@NotNull @NotNull String sender, @NotNull @NotNull Team team)
      Team chat channel closed

      Placeholders:

      • <sender> - the username of the message sender
      • <team> - team
      Parameters:
      sender - The username of the message sender
      team - The team
    • usage

      @NotNull public @NotNull Component usage(@NotNull @NotNull String label, @NotNull @NotNull String usage)
      Command usage format

      Placeholders:

      • <command> - the command name
      • <usage> - the command usage parameters
      Parameters:
      label - Command label
      usage - Command usage parameters
    • reloaded

      @NotNull public @NotNull Component reloaded()
      Plugin reloaded
    • consoleName

      @NotNull public @NotNull String consoleName()
      Name for console/server that should appear as <sender> or <recipient> in messages
    • toggleDisable

      @NotNull public @NotNull Component toggleDisable()
    • toggleDisableOther

      @NotNull public @NotNull Component toggleDisableOther(@NotNull @NotNull String player)
      Player's private messages have been toggled off

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - the player's username
    • toggleEnable

      @NotNull public @NotNull Component toggleEnable()
    • toggleEnableOther

      @NotNull public @NotNull Component toggleEnableOther(@NotNull @NotNull String player)
      Player's private messages have been toggled on

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - the player's username
    • noPermission

      @NotNull public @NotNull Component noPermission()
      No permission
    • invalidPlayer

      @NotNull public @NotNull Component invalidPlayer()
      Player has no username (somehow)
    • playerNotFound

      @NotNull public @NotNull Component playerNotFound(@NotNull @NotNull String player)
      Player not found

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - The player's username
    • messageYourself

      @NotNull public @NotNull Component messageYourself()
    • nobodyReply

      @NotNull public @NotNull Component nobodyReply()
    • replyOffline

      @NotNull public @NotNull Component replyOffline(@NotNull @NotNull String player)
      The player that messaged you is no longer online

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - The player's username
    • notPlayer

      @NotNull public @NotNull Component notPlayer()
      Only players can use this command
    • notIgnored

      @NotNull public @NotNull Component notIgnored(@NotNull @NotNull String player)
      That player is not ignored

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - The player's username
    • cannotIgnore

      @NotNull public @NotNull Component cannotIgnore(@NotNull @NotNull String player)
      Player cannot be ignored

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - The player's username
    • ignoreYourself

      @NotNull public @NotNull Component ignoreYourself()
      You are trying to ignore yourself
    • neverJoined

      @NotNull public @NotNull Component neverJoined(@NotNull @NotNull String player)
      Target player has never joined the server

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - The player's username
    • incomingDisabled

      @NotNull public @NotNull Component incomingDisabled(@NotNull @NotNull String player)
      Target player have disabled their incoming private messages.

      Placeholders:

      • <player> - the player's username
      Parameters:
      player - The player's username
    • notInTeam

      @NotNull public @NotNull Component notInTeam()
      Trying to message a team, but not in one