JoinTitle
当玩家进入服务器时显示自定义标题|Display custom titles when players enter the server
JoinTitle
JoinTitle Plugin
A simple Minecraft Java Edition server plugin that displays custom titles when players join the server.
---
Features
- Automatically shows a custom title when players join - Supports language switching and language switching - Compatible with language switching - Fully language switching content - language switching config reload command - Complete language switching with help messages - language switching (Chinese/English) - Dynamic language switching
---
Installation
1. Place the compiled `JoinTitle-1.0.0.jar` file in the server's `plugins` folder. 2. Restart the server. 3. Edit `plugins/JoinTitle/config.yml` to customize title content.
---
Commands
Basic Commands
- `/jointitle` or `/jointitle help` – Show help information - `/jointitle reload` – Reload plugin config (OP-only) - `/jointitle language` – Check current language - `/jointitle language [zh|en]` – Switch language (OP-only)
Permissions
- `jointitle.use` – Allows basic command usage (default: OP only) - `jointitle.reload` – Allows config reloading (default: OP only) - `jointitle.language` – Allows language switching (default: OP only)
Examples
``` /jointitle help # Show help /jointitle reload # Reload config (OP required) /jointitle language # Check current language /jointitle language en # Switch to English (OP required) /jointitle language zh # Switch to Chinese (OP required) ```
---
Configuration (`config.yml`)
Customize titles and help messages:
```yaml
Language settings (zh = Chinese, en = English)
language: zh
Main title
title: "&6&lWelcome to the Server!"
Subtitle
subtitle: "&aHave fun playing!"
Help message config
help: header: "&6&l=== JoinTitle Help ===" help-command: "&e/jointitle help &f- Show this help" reload-command: "&e/jointitle reload &f- Reload config" language-command: "&e/jointitle language [zh|en] &f- Switch language" version-info: "&7Plugin version: {version}" author-info: "&7Author: {author}" footer: "&7Use &e/jointitle reload &7to reload config"
Multi-language texts
languages: zh:
Chinese translations...
en:
English translations...
```
Config Options
- `language` – Current language (`zh` = Chinese, `en` = English) - `title` – Main title shown on join - `subtitle` – Subtitle shown on join - `help.*` – Help message formatting - `languages.zh.*` – Chinese translations - `languages.en.*` – English translations
---
Language System
- English (en) – Default language - English (en) – English interface
All plugin messages (help, errors, etc.) support multi-language display. Switch languages via config or commands.
---
Color & Format Codes
Colors
- `&0` – Black - `&1` – Dark Blue - `&2` – Dark Green - `&3` – Dark Aqua - `&4` – Dark Red - `&5` – Dark Purple - `&6` – Gold - `&7` – Gray - `&8` – Dark Gray - `&9` – Blue - `&a` – Green - `&b` – Aqua - `&c` – Red - `&d` – Light Purple - `&e` – Yellow - `&f` – White
Formats
- `&l` – Bold - `&o` – Italic - `&n` – Underline - `&m` – Strikethrough - `&k` – Random characters - `&r` – Reset formatting
---
Version Info
- Author: 1.21.x - Author: 1.0.0 - Author: 114514h
---
License
This project is licensed under MIT.
---
Let me know if you'd like any refinements! 🚀
---
JoinTitle 插件
一个简单的Minecraft Java版服务器插件,当玩家进入服务器时显示自定义标题。
功能特性
- 当玩家加入服务器时自动显示自定义标题 - 支持主标题和副标题 - 支持Minecraft颜色代码 - 可配置的显示内容 - 支持OP玩家重载配置 - 完整的命令系统和帮助信息 - 多语言支持(中文/英文) - 动态语言切换功能
安装方法
1. 将编译好的 `JoinTitle-1.0.0.jar` 文件放入服务器的 `plugins` 文件夹 2. 重启服务器 3. 编辑 `plugins/JoinTitle/config.yml` 文件来自定义标题内容
命令使用
基本命令
- `/jointitle` 或 `/jointitle help` - 显示帮助信息 - `/jointitle reload` - 重载插件配置(需要OP权限) - `/jointitle language` - 查看当前语言 - `/jointitle language [zh|en]` - 切换语言(需要OP权限)
权限说明
- `jointitle.use` - 允许使用基本命令(默认所有玩家) - `jointitle.reload` - 允许重载配置(默认仅OP) - `jointitle.language` - 允许切换语言(默认仅OP)
使用示例
``` /jointitle help # 显示帮助信息 /jointitle reload # 重载配置文件(需要OP权限) /jointitle language # 查看当前语言 /jointitle language en # 切换到英文(需要OP权限) /jointitle language zh # 切换到中文(需要OP权限) ```
配置说明
编辑 `config.yml` 文件来自定义标题内容和帮助信息:
```yaml
语言设置 (zh = 中文, en = 英文)
language: zh
主标题内容
title: "&6&l欢迎来到服务器!"
副标题内容
subtitle: "&a祝您游戏愉快!"
帮助信息配置
help: header: "&6&l=== JoinTitle 插件帮助 ===" help-command: "&e/jointitle help &f- 显示此帮助信息" reload-command: "&e/jointitle reload &f- 重载插件配置" language-command: "&e/jointitle language [zh|en] &f- 切换语言" version-info: "&7插件版本: {version}" author-info: "&7作者: {author}" footer: "&7使用 &e/jointitle reload &7重载配置"
多语言文本配置
languages: zh:
中文文本配置...
en:
英文文本配置...
```
配置项说明
- `language` - 当前使用的语言(zh = 中文,en = 英文) - `title` - 玩家加入时显示的主标题 - `subtitle` - 玩家加入时显示的副标题 - `help.*` - 帮助信息的各种配置项 - `languages.zh.*` - 中文语言包的所有文本 - `languages.en.*` - 英文语言包的所有文本
语言系统
插件支持完整的多语言系统:
- 英文 (en) - 默认语言 - 英文 (en) - 英文界面
所有插件的提示信息、帮助文本、错误消息等都支持多语言显示。可以通过配置文件或命令动态切换语言。
颜色代码
支持以下颜色代码: - `&0` - 黑色 - `&1` - 深蓝色 - `&2` - 深绿色 - `&3` - 深青色 - `&4` - 深红色 - `&5` - 深紫色 - `&6` - 金色 - `&7` - 灰色 - `&8` - 深灰色 - `&9` - 蓝色 - `&a` - 绿色 - `&b` - 青色 - `&c` - 红色 - `&d` - 浅紫色 - `&e` - 黄色 - `&f` - 白色
格式代码
- `&l` - 粗体 - `&o` - 斜体 - `&n` - 下划线 - `&m` - 删除线 - `&k` - 随机字符 - `&r` - 重置格式
---
版本信息
- 支持Minecraft版本:1.21.x - 插件版本:1.0.0 - 作者:114514h
许可证
本项目采用MIT许可证。