Language

Every message, item name, and line of lore displayed in the GUIs is managed from here.

This file is the central text engine for CatzFly. Every message, item name, and line of lore displayed in the GUIs is managed from here. This system makes it incredibly easy to customize all text to match your server's theme or translate the plugin into different languages.

Key Concepts

1. Key-Based Structure

All text is stored using a hierarchical key system. Instead of writing text directly in other files, we reference these keys.

Example Structure:

profile-menu:  # Top-level key for the menu
  title: "&8» &#5566CCᴘʀᴏғɪʟᴇ" # Key for the menu's title
  items: # Section for the menu's items
    settings: # Key for a specific item
      name: "&#FF5555&lsᴇᴛᴛɪɴɢs" # Key for the item's name
      lore: # Key for the item's lore
        - ""
        - "&8▪ &7Click to configure your"
        - "&7 personal flight settings."

2. Placeholders

You can use placeholders to display dynamic information that changes for each player. These are automatically replaced with the correct values.

  • {player_name}: The player's name.

  • {free_flight_seconds}: The player's remaining free flight time.

  • {total_flight_time}: The player's total flight time.

  • {total_spent}: The total amount of money the player has spent on flight.

  • {current_page} / {total_pages}: Used in the title of paginated menus like the Effect Market.

Example with Placeholders:

profile-menu:
  items:
    statistics:
      lore:
        - "&#AAAAAA&m-------------------------"
        - " &8● &7Free Time: &#33FF33{free_flight_seconds}"
        - " &8● &7Total Flight: &#FFFF33{total_flight_time}"
        - " &8● &7Total Spent: &#FFB833{total_spent}"
        - "&#AAAAAA&m-------------------------"

3. Color Codes

All text values in this file support standard Minecraft color codes (&) and HEX color codes (&#RRGGBB) for full creative control.

Last updated