#      ____             ___          __  _ ______      __
#     / __ \_________  /   |  ____  / /_(_)_  __/___ _/ /_
#    / /_/ / ___/ __ \/ /| | / __ \/ __/ / / / / __ `/ __ \
#   / ____/ /  / /_/ / ___ |/ / / / /_/ / / / / /_/ / /_/ /
#  /_/   /_/   \____/_/  |_/_/ /_/\__/_/ /_/  \__,_/_.___/
#  config.yml (Bukkit/Spigot version)

# Update notifier disabled — racked.ru handles plugin updates manually.
updater:
  enabled: false
  period: 10000

  announce-missing-parts: true

  # (!) Warning:
  #  Activating this will automatically update the config.yml in case something's missing.
  #  This will most likely cause the config.yml to look weird, considering that all comments,
  #  as well as spaces will be missing. Please take this in consideration.
  auto-update-config: false

  updated:
    - ''
  outdated:
    - ''

# (!) Warning: If you have a Bungeecord/Velocity server, please enable this option!
# (!) How to use it properly can be seen on the following page:
# (!) https://www.spigotmc.org/resources/113172/field?field=documentation
# (!) At the first section ("How to setup") are spoilers with different server scenarios.
# (!) Open the spoiler that matches your server scenario and follow the instructed steps in there.
# Enabling this allows the Bungeecord/Velocity and backend servers to communicate with each other.
# Information that are being communicated with are for example settings of certain features, but also important
# data about groups, commands and much more, that are very important for the tab-completion & suggestions!
# Affected features that are being synced with, or overwritten by the proxy, are marked as ">> HTP".
handle-through-proxy:
  enabled: false
  token: insert-token-of-proxy-here

  # Advanced option:
  # Loads the token from an ENV variable instead.
  # (!) Warning: Do NOT enable this option, unless you know what you're doing!
  load-from-env:
    enabled: false
    name: "PAT_TOKEN"

#>> HTP
# This is a very necessary feature if you have way too many commands to block and instead decide
# to whitelist specific commands.
# Enabling this will disable ALL commands except for those that are in the (group-)list.
turn-blacklist-to-whitelist: true

# Here you can customize the server version that is displayed on a ping. (The text at the player-count)
# (!) Warning: It's required to use Paper or Purpur to use this feature!
# (!) Supported server versions: 1.12.2 - latest
custom-protocol-ping:
  enabled: false

  # Normally it would only display when someone pings the server with the wrong version.
  # Enabling this will always display the protocol and replace it with the normal player count.
  always-show: false

  # This number here determines the outcome for the %online_extended% placeholder.
  # It's the current amount of players increased by this number.
  # For example: 5/20 becomes 6/20
  extend-online-count: 1
  # true: Use new calculated online-count (%online_extended%) as max-players count.
  # false: Use the default max-players count.
  use-as-maxplayers: false

  # Enabling this option hides the list of players on your server,
  # when you hover over the player count.
  hide-players: false

  # The displayed protocol message
  # Available placeholders:
  # %online%            - current online player count
  # %online_extended%   - manipulated online player count
  # %max%               - max player count
  # ... and all the other placeholders from PlaceholderAPI
  protocol: '&fracked.ru &7(&f%online%&7/&f%max%&7)'

  # The displayed message when you hover over the player count.
  custom-playerlist:
    enabled: false

    # Available placeholders:
    # %players%           - list of players
    # %online%            - current online player count
    # %max%               - max player count
    # ... and all the other placeholders from PlaceholderAPI
    list:
      - '&8> &7online players: &f%online%&7/&f%max%'
      - '&8> &7racked.ru'

#>> HTP (Sync)
# This feature allows you to create your own 'Unknown command.' message.
# It is very helpful considering the fact you might have to set the same message
# for if a command is blocked or really doesn't exist. ^^
# Good to hide real and not-real commands from your players.
custom-unknown-command:
  enabled: false
  message:
    - '&8[&fracked.ru&8]&r &cerror: &7this command does not exist'

#>> HTP (Overwritten)
# This setting decides if a listed command should be cancelled from execution or not.
# As you can see it's enabled by default, which is also why every command that is listed
# is being blocked entirely.
cancel-blocked-commands:
  enabled: true
  base-command-message:
    - ''
#    - '%prefix% &cerror: &7this command &8(&f%command%&8) &7is blocked'
  sub-command-message:
#    - '%prefix% &cerror: &7command &8(&f%command%&8) &7with the provided sub-argument is not allowed'
    - ''

#>> HTP (Overwritten)
# Here you can customize your own fake '/plugins' command.
custom-plugins:
  enabled: false

  # If this is set to true, the command will always be tab-completable,
  # even if the command is supposed to be blocked
  always-tab-completable: false

  commands:
    - pl
    - plugins
  message:
    - '&fPlugins (0):'

#>> HTP (Overwritten)
# Here you can customize your own fake '/version' command.
custom-version:
  enabled: true

  # If this is set to true, the command will always be tab-completable,
  # even if the command is supposed to be blocked
  always-tab-completable: false

  commands:
    - icanhasbukkit
    - about
    - version
    - ver
  message:
    - '&fracked.ru (MC: 1.21.1)'

#>> HTP (Overwritten)
# Here you can disable all namespace commands.
# Namespace commands are commands like plugin:command (e.g: essentials:warp)
# You can bypass this restriction with the proantitab.namespace permission.
block-namespace-commands:
  enabled: true

#>> HTP (Overwritten)
# Auto lowercase all commands when being executed,
# such that something like /PAY turns into /pay.
auto-lowercase-commands:
  enabled: false

# Patches a small exploit which causes the server to lag.
# Due to the fact that PAT interacts directly with Tab-Completions and their packets,
# it would be a waste not to provide some simple patches like these. ^^
patch-exploits:
  enabled: true
  alert-message: '%prefix% &e%player% &7tried to crash/lag the server'
  kick-message: '&cerror: &7failed to read packet. please reconnect.'

#>> HTP (Overwritten)
# This feature allows you to customize your server brand you see when you press F3.
# Normally there is something like 'Purpur', or 'Spigot'.
# With this feature, you are able to change and even animate it.
custom-server-brand:
  enabled: false

  # Determines the speed at which the animation goes.
  # Set this to -1 to disable the animation.
  # Disabling the animation will only display
  # the first brand of this list.
  # Warning:
  # By disabling the animation, you also disable the
  # automatic update of information.
  # That means that placeholders won't update unless the
  # player rejoins the server.
  repeat-delay: 3

  # This is the list of the animation
  # Possible placeholders:
  # %player%        - name of the player
  # %displayname%   - display name of the player
  # %world%         - name of the world where the player is
  # and the other placeholders from PlaceholderAPI.
  brands:
    - '&fracked.ru'

# ------------------------------------------------------------------------------
#       __  ___
#      /  |/  /__  ______________ _____ ____  _____
#     / /|_/ / _ \/ ___/ ___/ __ `/ __ `/ _ \/ ___/
#    / /  / /  __(__  |__  ) /_/ / /_/ /  __(__  )
#   /_/  /_/\___/____/____/\__,_/\__, /\___/____/
#                               /____/
# Here are all the remaining messages for the InGame commands.
# Have fun editing them to your liking! ^^
# Remember: PlaceholderAPI & MiniMessage works on all these messages! ^^
# Here are a few other placeholders that can be used in any message here:
# %prefix%            - the plugin prefix
# %executor%          - the name of the executor (command specified)
# %newest_version%    - the version name of the latest plugin update
# %current_version%   - the version name of the plugin that is installed right now

prefix: '&8[&fracked.ru&8]&r'
only-for-proxy: '%prefix% &cerror: &7this command works on bungeecord/velocity servers only'
no-permissions: '%prefix% &cerror: &7you are not allowed to execute this command. missing permission: &f%permission%'
command-failed: '%prefix% &cerror: &7failed to execute this command. use &e/pat&7 to see all available commands'

update-permissions:
  all-players: '%prefix% &7updated permissions'
  specific-player: '%prefix% &7updated &e%target%&7''s permissions'
  player-not-online: '%prefix% &cerror: &7&e%target%&7 is not online'

post-debug:
  success: '%prefix% &7successfully uploaded debug logs: &e%link% &8(<click:open_url:%link%><gray>CLICK</click>&8)'
  failed: '%prefix% &cerror: &7failed to upload debug logs'

reload:
  loading: '%prefix% &7reloading all configuration files...'
  done: '%prefix% &7successfully reloaded all configuration files'

perms-check:
  message: "%prefix% &7all of &e%player%&7's racked.ru permissions: &e%permissions%"
  player-is-missing: "%prefix% &cerror: &7please specify the player whose permission you want to check"
  player-not-online: "%prefix% &cerror: &7&e%player%&7 is not online"

help:
  - '%prefix% &7available commands: &e/%label%&7...'
  - '%prefix% &7format: &8<optional> (required)'
  - '%prefix% &f  reload &7to reload the plugin'
  - '%prefix% &f  notify &7to get alerted'
  - '%prefix% &f  info &7to get a few information'
  - '%prefix% &f  postdebug &7to post the logs'
  - '%prefix% &f  update <player> &7to update player(s) permissions'
  - '%prefix% &f  perms <player> &7to check a player''s permissions'
  - '%prefix% &f  add/rem (command) &8<group> &7to manage the list'
  - '%prefix% &f  clear &8<group> &7to clear the list'
  - '%prefix% &f  creategroup (group) &7to create a group'
  - '%prefix% &f  deletegroup (group) &7to delete a group'
  - '%prefix% &f  setpriority (group) (priority) &7to set the priority'
  - '%prefix% &f  list &8(group) &7to see all listed commands'
  - '%prefix% &f  listgroups &7list all groups'
  - '%prefix% &f  listpriorities &7to list all group priorities'

info:
  version:
    updated: '&7updated'
    outdated: '&7current (%newest_version%)'

  proxy-sync:
    time: '&e%time%'
    disabled: '&cdisabled'

  message:
    - '%prefix% &7info:'
    - '%prefix% &7  version: &e%current_version%'
    - '%prefix% &7  status: %version_status%'
    - '%prefix% &7  last sync with proxy: %sync_time%'
    - '%prefix% &7  proxy sync-token: &e%token%'
    - '%prefix% &7  proxy-received server name: &e%sync_server_name%'

notification:
  enabled: '%prefix% &7enabled notifications'
  disabled: '%prefix% &7disabled notifications'
  alert:
    - '%prefix% &cALERT &8- &e%player% &8(&7world: &e%world%&8) &7tried to execute the following blocked command: &f%command%'

blacklist:
  clear: '%prefix% &7list has been cleared'
  clear-confirmation: '%prefix% &cwarning: &7this command will clear the entire list. repeat the &esame command&7 to confirm this action'

  list:
    message: '%prefix% &7listed commands (&f%size%&7)&8: &f%commands%'
    splitter: '&7, &f'

  add:
    success: '%prefix% &7successfully added &f%command%&7 to the list'
    failed: '%prefix% &cerror: &7&f%command%&7 is already in the list'

  remove:
    success: '%prefix% &7successfully removed &f%command%&7 from the list'
    failed: '%prefix% &cerror: &7&f%command%&7 is not listed'

group:
  create: '%prefix% &7group &e%group%&7 has been created'
  already-exist: '%prefix% &cerror: &7group &e%group%&7 already exists'
  does-not-exist: '%prefix% &cerror: &7group &e%group%&7 does not exist'

  delete: '%prefix% &7group &e%group%&7 has been deleted'
  delete-confirmation: '%prefix% &cwarning: &7this command will delete the group with the entire list of this group. repeat the &esame command&7 to confirm this action'

  clear: '%prefix% &7list of group &e%group%&7 has been cleared'
  clear-confirmation: '%prefix% &cwarning: &7this command will clear the entire list of this group. repeat the &esame command&7 to confirm this action'

  priority:
    success: '%prefix% &7successfully set the priority of group &e%group%&7 to &e%priority%'
    failed: '%prefix% &cerror: &7invalid priority. please choose a number which is greater than 0'

  list:
    message: '%prefix% &7listed commands of group &e%group%&7 (&f%size%&7)&8: &f%commands%'
    splitter: '&7, &f'

  list-groups:
    message: '%prefix% &7all groups (&f%size%&7)&8: &f%groups%'
    splitter: '&7, '
    command: '&f%group%'

  list-priorities:
    message: '%prefix% &7list of all group priorities (&f%size%&7)&8: \n&f%groups%'
    splitter: '\n'
    group: '&8- &e%priority%&8: &e%group%'

  add:
    success: '%prefix% &7successfully added &f%command%&7 to the list of group &e%group%'
    failed: '%prefix% &cerror: &7&f%command%&7 is already in the list of group &e%group%'

  remove:
    success: '%prefix% &7successfully removed &f%command%&7 from the list of group &e%group%'
    failed: '%prefix% &cerror: &7&f%command%&7 is not listed in the group &e%group%'
