MiniBookMiniBook

messages.yml

##Introducción

El archivo messages.yml te permite personalizar completamente todos los mensajes enviados por el plugin MiniBook. Esto incluye respuestas de comandos, errores, páginas de ayuda, mensajes de gestión de libros y notificaciones de estado del plugin. Personalizar este archivo te ayuda a adaptar el plugin al estilo de tu servidor y a mejorar la claridad para jugadores y staff.


##Desglose del archivo messages.yml

###prefix

prefix: "#FF4545&lM#FFE645&li#7BFF59&ln#6161FF&li&r&lBook &8»&r"

Define el prefijo principal utilizado en todos los mensajes del plugin.

  • Soporta códigos de color legacy (&)
  • Soporta colores hexadecimales (#RRGGBB)
  • El placeholder %prefix% puede usarse en cualquier parte del archivo

##Mensajes de Comandos

###commands.reload

commands:
  reload:
    error: "%prefix% #FF0000🚫 Failed on plugin reload."
    success: "%prefix% #a0ff72✔ Plugin reloaded successfully"
  • error – Se muestra si el plugin falla al recargarse.
  • success – Se muestra cuando el plugin se recarga correctamente.

Placeholders: %prefix%


###commands.help

Página de ayuda multilínea que se muestra al usar /mk help.

commands:
  help:
    - " "
    - " "
    - "                        #FF4545&lM#FFE645&li#7BFF59&ln#6161FF&i&r&lBook &8» &r&fHelp"
    - " "
    - "                       #fff18d&lʙᴏᴏᴋ ᴄᴏᴍᴍᴀɴᴅꜱ"
    - "&f  /ᴍᴋ ᴏᴘᴇɴ <ʙᴏᴏᴋ> [ᴘʟᴀʏᴇʀ/*] #707070- #ccccccOpens the selected book to the player(s) or itself."
    - "&f  /ᴍᴋ ʟɪꜱᴛ #707070- #ccccccDisplays a list of all configured books."
    - " "
    - "                    #fff18d&lᴘʟᴜɢɪɴ ᴄᴏᴍᴍᴀɴᴅꜱ"
    - "&f  /ᴍᴋ ʜᴇʟᴘ #707070» #ccccccShows this help message"
    - "&f  /ᴍᴋ ʀᴇʟᴏᴀᴅ #707070» #ccccccReloads the plugin configuration"
    - "&f  /ᴍᴋ ɪɴꜰᴏ #707070- #ccccccDisplays information about the plugin."
    - " "
    - " "
    - " "

Cada entrada de la lista es una línea enviada al jugador en orden.


##Mensajes de Gestión de Libros

###commands.create

commands:
  create:
    insufficient_args: "%prefix% #FF0000🚫 Insufficient args. #ccccccUse &f/mk create <id> \"<title>\" \"<author>\""
    already_exist: "%prefix% #FF0000🚫 Book '%book%' already exists."
    success:
      first: "%prefix% #a0ff72✔ Created book '%book%'"
      second: "#ccccccFor editing your book, open #efefef&oplugins/MiniBook/books/%book%.yml"
    failed: "%prefix% #FF0000🚫 Failed on creating book '%book%'"
  • insufficient_args – No se proporcionaron suficientes argumentos.
  • already_exist – El ID del libro ya existe.
  • success.first / success.second – Se muestran tras una creación exitosa.
  • failed – Falló la creación del libro.

Placeholders: %prefix%, %book%


###commands.delete

commands:
  delete:
    success: "%prefix% #a0ff72✔ Deleted book '%book%'"

Se muestra cuando un libro se elimina correctamente.

Placeholders: %prefix%, %book%


###commands.list

commands:
  list:
    no_books: "%prefix% #FF0000🚫 Can't find any books"
    header: "#cccccc         &m----------  &r#FF4545&lM#FFE645&li#7BFF59&ln#6161FF&li&r&lBook #cccccc&m----------"
    row: "<color:#efefef>  -</color> <color:#fffaab><book></color> <color:#eeeeee>(</color><title><color:#eeeeee>/</color><author><color:#eeeeee>)</color>"
  • row usa exclusivamente formato MiniMessage.

Placeholders: %prefix%, <book>, <title>, <author>


###commands.open

commands:
  open:
    insufficient_args: "%prefix% #FF0000🚫 Insufficient args. #ccccccUse &f/mk open <book> [player/*]"
    premium: "%prefix% #FF0000🚫 You need permission '%permission%' for open book '%book%'."
    book_not_found: "%prefix% #FF0000🚫 Can't find book '%book%'"
    failed: "%prefix% #FF0000🚫 Failed on opening book '%book%'"
    only_players: "%prefix% #FF0000🚫 You need to specify a target when running in the console. &7Use &f/mk open <id> <target/*>"
    target_not_found: "%prefix% #FF0000🚫 Can't find player '%target%'"
    success:
      self: "%prefix% #a0ff72✔ Opened '%book%'"
      target: "%prefix% #a0ff72✔ Opened '%book%' to player '%target%'"
      all: "%prefix% #a0ff72✔ Opened '%book%' to all online players."

Placeholders: %prefix%, %book%, %target%, %permission%


###commands.give

commands:
  give:
    insufficient_args: "%prefix% #FF0000🚫 Insufficient args. #ccccccUse &f/mk give <book> [player/*]"
    premium: "%prefix% #FF0000🚫 You need permission '%permission%' for give/get book '%book%'."
    book_not_found: "%prefix% #FF0000🚫 Can't find book '%book%'"
    failed: "%prefix% #FF0000🚫 Failed on opening book '%book%'"
    only_players: "%prefix% #FF0000🚫 You need to specify a target when running in the console. &7Use &f/mk give <id> <target/*>"
    target_not_found: "%prefix% #FF0000🚫 Can't find player '%target%'"
    success:
      self: "%prefix% #a0ff72✔ Received '%book%'"
      target: "%prefix% #a0ff72✔ Given '%book%' to player '%target%'"
      all: "%prefix% #a0ff72✔ Given '%book%' to all online players."

Placeholders: %prefix%, %book%, %target%, %permission%


##Mensajes de Error

error:
  no_permission: "%prefix% #FF0000🚫 Don't have permission to use this command."
  invalid_command: "%prefix% #FF0000🚫 Invalid command. #ccccccUse &f/mk help #ccccccto see the plugin commands."

Se usan para problemas de permisos y manejo de comandos inválidos.

Placeholders: %prefix%


##Resumen de Placeholders

  • %prefix% — Prefijo principal del mensaje
  • %book% — ID del libro
  • %title% — Título del libro
  • %author% — Autor del libro
  • %target% — Jugador objetivo
  • %permission% — Nodo de permiso requerido

Consejo: MiniBook soporta códigos de color legacy, colores hexadecimales y MiniMessage (donde se indica explícitamente). Los placeholders se reemplazan en los mensajes donde correspondan.