KoukeNeko Nametag Plugin

KoukeNeko 名牌是一个强大且用户友好的 Minecraft 标签/前缀管理插件,它允许玩家通过直观的 GUI 菜单选择和显示他们在名字前方的自定义标签。

资源图片
A Spigot plugin that allows players to control mob spawn. # KoukeNeko Nametag Plugin image image ## 🌟 Introduction KoukeNeko Nametag is a powerful and user-friendly Minecraft tag/prefix management plugin that allows players to select and display custom tags in front of their names with an intuitive GUI menu. ## 🔧 Features - ✅ Easy-to-use GUI for selecting tags - ✅ Permission-based tag access - ✅ Custom tag creation with color code support - ✅ Admin commands for tag management - ✅ Integration with LuckPerms and TAB plugin - ✅ Persistent tag storage and configuration - ✅ Simple command to reload configuration - 🆕 **Highly customizable config.yml with new sections** - 🆕 **Flexible menu settings (title, size, materials, positions)** - 🆕 **Configurable command details (names, aliases, descriptions)** - 🆕 **File management options and debug settings** - 🆕 **Multi-language support with customizable language files** ## 📂 Installation 1. Place the `KoukeNeko-Nametag.jar` file into your server's `plugins` folder 2. Restart your server or use the `/reload confirm` command 3. Configure the plugin settings in `config.yml` and `tags.yml` as needed > **Note:** This plugin can work with any tag display method. The default configuration uses TAB Plugin and LuckPerms commands, but you can modify these in the config.yml to work with other plugins. ## 🚀 Commands | Command | Description | Permission | |---------|-------------|------------| | `/tag` | Open the tag selection menu | None | | `/tag create ` | Create a new tag | `koukeneko.admin` | | `/tag remove ` | Delete a tag | `koukeneko.admin` | | `/tag add ` | Give a player permission to use a tag | `koukeneko.admin` | | `/tag remove ` | Remove tag permission from a player | `koukeneko.admin` | | `/koukeneko reload` (`/kn reload`) | Reload plugin configuration | `koukeneko.admin` | ## 🔑 Permissions | Permission | Description | |------------|-------------| | `koukeneko.admin` | Access to all administrative commands | | `koukeneko.tags.` | Permission to use a specific tag | ## ⚙️ Configuration ### config.yml ```yaml # Basic Settings prefix: "&7[&6&l標籤&7&l系統&7]&f" # 訊息前綴 language: "zh_TW" # 支援的語言: zh_TW, en_US # Permission Settings permission: admin: "koukeneko.admin" # 管理員權限 tag_prefix: "koukeneko.tags." # 標籤權限前綴 # Menu Customization menu: title: "&8Tag Selection" # 選單標題 rows: "auto" # 選單行數 (auto 自動計算或 1-6) remove_item: material: "BARRIER" # 移除按鈕材質 position: "bottom_right" # 按鈕位置 tag_item: material: "NAME_TAG" # 標籤物品材質 # Command Configuration commands: main: name: "koukeneko" aliases: ["kn"] description: "KoukeNeko 插件主指令" usage: "/koukeneko reload" permission: "koukeneko.admin" tag: name: "tag" aliases: ["標籤", "tags"] description: "標籤系統指令" usage: "/tag [參數]" # Commands to execute when tags are selected/modified command: settag: # 設定標籤 - "tab player {player} tagprefix {tag}" - "tab player {player} tabprefix {tag}" remove: # 移除標籤 - "tab player {player} tagprefix" - "tab player {player} tabprefix" add_permission: # 增加權限 - "lp user {player} permission set {tag}" remove_permission: # 移除權限 - "lp user {player} permission unset {tag}" remove_permission_all: # 移除所有玩家的標籤權限 - "lp group default permission unset {tag}" - "lp user * permission unset {tag}" # File Settings files: tags_file: "tags.yml" # 標籤檔案名稱 language_file_prefix: "lang_" # 語言檔案前綴 language_file_suffix: ".yml" # 語言檔案後綴 # Debug Settings debug: enabled: false # 除錯模式開關 log_commands: true # 記錄執行的指令 log_permissions: false # 記錄權限檢查 ``` ### tags.yml ```yaml # Tag definitions tags: # Format: # tag-id: # display: Tag display format (supports & color codes) # Member tag member: display: "&7[&a玩家&7]&f" # VIP tag vip: display: "&7[&6VIP&7]&f" # Admin tag admin: display: "&7[&cop&7]&f" # Beta tester tag beta: display: "&7[&bBeta&7]&f" # Developer tag dev: display: "&7[&5Dev&7]&f" ``` ## 📱 Usage ### For Players 1. Use the `/tag` command to open the tag selection GUI 2. Click on any available tag to apply it to your name 3. Click the barrier icon to remove your current tag ### For Admins 1. Create tags with `/tag create ` (e.g., `/tag create mvp &7[&bMVP&7]&f`) 2. Grant players permission with `/tag add ` 3. Remove tags with `/tag remove ` if needed ## ⚠️ Important Notes - Color codes use the `&` symbol (e.g., `&7[&aVIP&7]` for gray brackets with a green "VIP") - The default configuration uses commands compatible with TAB plugin and LuckPerms, but you can modify these in config.yml - The tags.yml file contains default tags, which you can modify or add to as needed - When removing a tag, all online players will receive a notification if they had that tag ## 🤝 Contribution Feel free to submit Issues or Pull Requests if you encounter any problems or have suggestions for additional features. ## 📜 License This plugin is released under the MIT License. --- ## 🌟 簡介 KoukeNeko Nametag 是一個功能強大且使用者友好的 Minecraft 稱號/前綴管理插件,允許玩家通過直觀的 GUI 選單選擇並在名字前顯示自定義標籤。 ## 🔧 功能特色 - ✅ 簡單易用的標籤選擇 GUI 界面 - ✅ 基於權限的標籤使用控制 - ✅ 支援顏色代碼的自定義標籤建立 - ✅ 完整的管理員標籤管理指令 - ✅ 與 LuckPerms 和 TAB 插件的無縫整合 - ✅ 永久性標籤存儲和設定 - ✅ 簡單的設定重載指令 ## 📂 安裝方式 1. 將 `KoukeNeko-Nametag.jar` 文件放入伺服器的 `plugins` 文件夾 2. 重啟伺服器或使用 `/reload confirm` 指令 3. 根據需要在 `config.yml` 和 `tags.yml` 中設定插件設定 > **注意:** 本插件可以與任何稱號顯示方式搭配使用。預設設定使用了TAB插件和LuckPerms的指令,但您可以在config.yml中修改這些設定以配合其他插件。 ## 🚀 指令 | 指令 | 描述 | 權限 | |------|------|------| | `/tag` | 打開標籤選擇選單 | 無 | | `/tag create <標籤ID> <顯示格式>` | 建立新標籤 | `koukeneko.admin` | | `/tag remove <標籤ID>` | 刪除標籤 | `koukeneko.admin` | | `/tag <玩家> add <標籤ID>` | 給予玩家使用標籤的權限 | `koukeneko.admin` | | `/tag <玩家> remove <標籤ID>` | 移除玩家的標籤權限 | `koukeneko.admin` | | `/koukeneko reload` (`/kn reload`) | 重新載入插件設定 | `koukeneko.admin` | ## 🔑 權限 | 權限 | 描述 | |------|------| | `koukeneko.admin` | 擁有所有管理指令的權限 | | `koukeneko.tags.<標籤ID>` | 使用特定標籤的權限 | ## ⚙️ 設定 ### config.yml ```yaml prefix: "&7[&6&l標籤&7&l系統&7]&f" # 訊息前綴 # 當選擇標籤後要執行的系統指令 command: settag: # 設定標籤 - "tab player {player} tagprefix {tag}" - "tab player {player} tabprefix {tag}" remove: # 移除標籤 - "tab player {player} tagprefix" - "tab player {player} tabprefix" add_permission: # 增加權限 - "lp user {player} permission set {tag}" remove_permission: # 移除權限 - "lp user {player} permission unset {tag}" remove_permission_all: # 移除所有玩家的標籤權限 - "lp group default permission unset {tag}" - "lp user * permission unset {tag}" ``` ### tags.yml ```yaml # 標籤定義 tags: # 格式: # 標籤ID: # display: 顯示格式 (支援 & 顏色代碼) # 普通會員標籤 member: display: "&7[&a玩家&7]&f" # VIP標籤 vip: display: "&7[&6VIP&7]&f" # 管理員標籤 admin: display: "&7[&cop&7]&f" # BETA測試者標籤 beta: display: "&7[&bBeta&7]&f" # 伺服器開發者標籤 dev: display: "&7[&5Dev&7]&f" ``` ## 📱 使用方法 ### 玩家使用 1. 使用 `/tag` 指令打開標籤選擇界面 2. 點選任何可用標籤將其應用到您的名字 3. 點選障礙物圖標(右下角)移除目前標籤 ### 管理員使用 1. 使用 `/tag create <顯示>` 建立標籤(例如:`/tag create mvp &7[&bMVP&7]&f`) 2. 使用 `/tag <玩家> add ` 授予玩家權限 3. 如需移除標籤,使用 `/tag remove ` ## ⚠️ 注意事項 - 顏色代碼使用 `&` 符號(例如:`&7[&aVIP&7]` 表示灰色括號內的綠色「VIP」文字) - 預設設定使用了與 TAB 插件和 LuckPerms 相容的指令,但您可以在 config.yml 中修改這些設定 - tags.yml 文件包含預設標籤,您可以根據需要修改或新增新標籤 - 刪除標籤時,所有擁有該標籤權限的在線玩家都會收到通知 ## 🤝 貢獻 若發現任何問題或希望提供功能建議,歡迎提交 Issue 或 Pull Request。 ## 📜 授權協議 本插件基於 MIT 許可協議發布。 --- 🚀 Enjoy your game! 祝你遊戲愉快!