# ============================================================
#                       PlayTime Messages
# ============================================================
# All messages used by the PlayTime plugin.
# ============================================================

# Global prefix used in most messages.
prefix: "&6ᴘʟᴀʏᴛɪᴍᴇ &e♦ &f"

messages:

  # ----------------------------------------------------------
  # PLAYTIME DISPLAY MESSAGES
  # ----------------------------------------------------------
  playtime:
    # Message shown when a player checks THEIR OWN playtime:
    #   /playtime
    # Placeholders:
    #   %prefix%          - Global prefix
    #   %playtime%        - Total formatted playtime
    #   %afk-time%        - Formatted total AFK time
    #   %active-playtime% - Formatted active (non-AFK) time
    #   %joins%           - Number of joins (LEAVE_GAME statistic)
    #   %date-joined%     - First join date (yyyy-MM-dd)
    self:
      - "%prefix%&fYou've played for &6%playtime%&f."
      - "%prefix%&fActive Time: &a%active-playtime% &7(Non-AFK)"
      - "%prefix%&fAFK Time: &c%afk-time%"
      - "%prefix%&fTimes Joined: &6%joins%"
      - "%prefix%&fFirst Joined: &6%date-joined%"

    # Message shown when checking ANOTHER player's playtime:
    #   /playtime <player>
    # Placeholders:
    #   %prefix%
    #   %player%      - Target player's name
    #   %playtime%
    #   %joins%
    #   %date-joined%
    other:
      - "%prefix%&6%player% &fhas played for &6%playtime%&f."
      - "%prefix%&6%player% &fjoined &6%joins% &ftimes."
      - "%prefix%&6%player% &ffirst joined on &6%date-joined%&f."

    # Message shown when there is no stored playtime data for a target:
    #   (e.g., /playtime <player> where we have no data)
    # Placeholders:
    #   %prefix%
    #   %target% - Name used in the command or resolved player name
    not-found:
      - "%prefix%&cNo &fplaytime data found for &6%target%&f."

  # Messages related to the resetplaytime sub-command.
  resetplaytime-usage: "&fUsage&7: &e/playtime resetplaytime (player)"
  resetplaytime-success: "&cReset &fplaytime for &6%player%&f."
  resetplaytime-target: "&fYour playtime has been &creset &fby an &4Admin&f."

  # ----------------------------------------------------------
  # GENERIC / SYSTEM MESSAGES
  # ----------------------------------------------------------

  # Sent after /playtime reload
  reloaded: "%prefix%&aConfiguration reloaded."

  # Optional: message used when opening the Top GUI (if referenced).
  top-header: "%prefix%Opening top playtimes..."

  # No permission message for restricted commands.
  no-permission: "%prefix%&cYou do not have permission to do that."

  # Sent when a command must be run by a player, but the sender is console.
  player-only: "%prefix%&cOnly players can run this command."

  # Sent when a player name / profile cannot be resolved or is invalid.
  # Used for nonexistent names like "SAWETJCAEWTJHCA".
  invalid-player: "%prefix%&cPlayer not found."

  # Generic invalid usage (fallback, if/when used).
  invalid-usage: "%prefix%&cInvalid usage."

  # ----------------------------------------------------------
  # REWARD CLEAR / MANAGEMENT MESSAGES
  # ----------------------------------------------------------
  # Used with:
  #   /playtime clearrewards
  #   /pt clearrewards
  # And related flows.
  # ----------------------------------------------------------

  # Sent TO THE TARGET (if enabled in config.yml) when their rewards are wiped.
  # Requires:
  #   settings.Rewards-Cleared.Tell-Target-All-Their-PlayTime-Rewards-Were-Cleared: true
  rewards-were-cleared: "%prefix%Your playtime reward data has been &creset&f."

  # Sent to the staff/admin performing /clearrewards after success.
  # Placeholders:
  #   %player% - Target whose rewards were cleared
  cleared-players-rewards: "%prefix%All reward data for &6%player% &fhas been &ccleared&f."

  # Sent if an admin tries to confirm clear for a player whose data
  # is not pending confirmation.
  # Placeholders:
  #   %player% - Admin name
  player-not-on-the-confirm-list: "%prefix%That players' PlayTime rewards aren't pending clear. &7(&e/pt clearrewards %player%&7)"

  # Sent when trying to clear "constant" rewards, which are intentionally permanent.
  constant-rewards-cant-be-cleared: "%prefix%&6Constant &frewards can't be reset. The rewards are intended to always be able to be redone."

  # Sent when daily rewards are cleared for a target.
  daily-rewards-were-cleared: "%prefix%&eDaily &frewards were &ccleared &ffor &6%player%&f."

  # Sent when streak rewards are cleared for a target.
  streaks-were-cleared: "%prefix%&cStreak &frewards were &ccleared &ffor &6%player%&f."

  # Sent when session rewards are cleared for a target.
  session-rewards-were-cleared: "%prefix%&6Session &frewards were &ccleared &ffor &6%player%&f."

  # Sent when unique rewards are cleared for a target.
  unique-rewards-were-cleared: "%prefix%&aUnique &frewards were &ccleared &ffor &6%player%&f."

  # Sent if an invalid reward type is specified in:
  #   /playtime clearrewards <player> <type>
  invalid-reward-type: "%prefix%&cInvalid &freward type. Use: &aunique&f, &edaily&f, &6session&f, &6constant&f, &cstreaks"

  # Sent if an admin tries to add the same player to the confirmation list twice.
  # Placeholders:
  #   %player% - Name already in confirm list
  players-data-already-in-confirm-list: "%prefix%The reward data for &6%player% &fis already pending confirmation. &7(&e/pt clearrewards %player% confirm&7)"

  # Sent when reward system is globally disabled in config.yml.
  rewards-disabled: "%prefix%Rewards are &cdisabled&f."

  # ----------------------------------------------------------
  # OFFLINE NOTICE
  # ----------------------------------------------------------
  # Sent (when configured by code) to indicate that a valid player
  # is currently offline when checking their playtime.
  # Placeholders:
  #   %prefix%
  #   %player% - Target player's name
  player-offline: "%prefix%&6%player% &fis currently &coffline&f."

  # ----------------------------------------------------------
  # HOVER / CLICK CONFIRMATION MESSAGES
  # ----------------------------------------------------------
  # Used for clickable confirmation in chat when clearing rewards.
  hover-message:
    # Main line shown in chat with a clickable component.
    # Placeholders:
    #   %prefix%
    #   %player% - Target whose rewards are about to be cleared
    message-in-chat: "%prefix%You need to confirm clearing &lALL &fof &6%player%s' &freward data. &7(&a&lClick to confirm&7)"

    # Text displayed when hovering over the clickable confirmation line.
    # Placeholders:
    #   %player%
    hover: "&fClick to confirm clearing of &6%player%s' &freward data."

  # ----------------------------------------------------------
  # CLEAR REWARDS HELP / BREAKDOWN
  # ----------------------------------------------------------
  # Shown when running /playtime clearrewards with no/invalid args.
  clear-rewards-breakdown:
    - "%prefix%Usage: &e/pt clearrewards (player) [reward-type]"
    - "                     &7(required) [optional]"
    - "&f"
    - "&fValid reward types: &aunique&f, &edaily&f, &6session&f, &6constant&f, & &cstreaks"

  # ----------------------------------------------------------
  # HELP MESSAGE LIST
  # ----------------------------------------------------------
  # Displayed when running:
  #   /playtime help
  # or as a fallback in some invalid usage cases.
  help:
  - "%prefix%&e/playtime &7- &fView your playtime."
  - "%prefix%&e/playtime (player) &7- &fView another player's playtime."
  - "%prefix%&e/playtime rewards &7- &fView rewards for playtime milestones."
  - "%prefix%&e/playtime streaks &7- &fView your daily streak progress."
  - "%prefix%&e/playtime clearrewards (player) [reward-type] &7- &fClear all or a specified type of reward data for a player."
  - "%prefix%&e/playtime resetplaytime (player) &7- &fReset a player's total playtime."
  - "%prefix%&e/playtime top &7- &fView top playtimes (overall)."
  - "%prefix%&e/playtime topday (yyyy-MM-dd) [amount] &7- &fView top playtimes for a specific day."
  - "%prefix%&e/playtime topmonth (yyyy-MM) [amount] &7- &fView top playtimes for a specific month."
  - "%prefix%&e/playtime reload &7- &fReload plugin configuration."