Team-HomeGUI 插件
🌐 English
版本: 1.4.2 | API: Paper 1.21 – 26.3 (Java 25) | 作者: Duong2012G
适用于 Paper 服务器的团队系统,包含菜单功能:拥有角色的团队、用于所有团队操作的团队菜单(/team menu)、团队聊天、
团队出生点、最多 5 个个人出生点的出生点菜单、冷却时间与引导时间、可选的 Vault 收费、PlaceholderAPI 占位符以及针对 /home 的 EssentialsX 覆盖。
功能
| 类别 |
功能 |
| 团队菜单 |
/team menu 打开一个团队菜单:信息、成员(晋升 / 降级 / 踢出 / 转让)、从在线玩家列表中邀请、切换团队聊天、团队出生点(传送 / 设置 / 删除)、重命名、颜色选择器、邀请规则、离开或解散。无法撤销的操作(删除团队出生点、离开、解散、踢出、转让)会先请求确认。 |
| 团队 |
创建、邀请(接受 / 拒绝)、离开、踢出、解散、重命名、颜色、列表、信息 |
| 角色 |
所有者 / 管理员 / 成员。所有者和管理员可以邀请、踢出成员,设置团队出生点并更改设置;只有所有者才能踢出或降级管理员、转让所有权或解散团队。离线成员可以被踢出、晋升、降级和授予所有权。 |
| 团队聊天 |
/team chat enable|disable(所有消息发送到团队)和 /team msg <text>;全局聊天中可选的 [team] 前缀。聊天文本永远不会进行颜色转换。 |
| 团队出生点 |
/team sethome、/team delhome(所有者 / 管理员)和 /team home,或者团队菜单中的按钮和出生点菜单中的横幅 |
| 个人出生点 |
菜单显示 5 个;通过 /sethome <name>,玩家也可以按名称保留出生点,但总数永远不会超过其上限:default-max-homes,通过 teamplugin.homes.<n> 权限提升,且永远不会超过天花板 max-homes-limit(默认为 5) |
| 出生点菜单 |
/home / /sethome:床图标用于传送,浅绿色 / 红色染料用于设置 / 删除,删除前有确认菜单;所有物品栏都锁定以防止点击和拖拽 |
| 安全数据 |
位置使用世界的键和名称存储,仅在传送时解析,因此即使世界未加载,出生点也不会丢失。文件在后台线程上原子写入。 |
| 冷却与引导 |
每个玩家的冷却时间;带有动作栏倒计时的引导时间。在引导期间,玩家不能行走但仍可以环顾四周(可选);方块变化、传送或死亡会取消引导。取消的引导不消耗任何代价。 |
| 经济 |
设置出生点、传送、创建团队和设置团队出生点的 Vault 费用(默认全部关闭) |
| 友军伤害 |
阻止来自所有来源的团队成员之间的伤害:近战、箭矢、三叉戟、药水、TNT。你仍然可以伤害自己。 |
| PlaceholderAPI |
%team_*% 占位符 |
| EssentialsX |
/home、/sethome 和 /delhome(也包括 /essentials:home ...)始终指向此插件 |
| 管理工具 |
/team admin ... 供拥有 teamplugin.admin 权限的人使用,带有管理员黑名单 |
依赖
| 依赖项 |
必需 |
Paper 26.3(针对 26.3 API 编译;api-version: 26.1,因此 26.1 / 26.2 可能加载它,仅针对 26.3 进行了目标适配) |
✅ |
| Java 25 |
✅ |
| Vault + 经济插件 |
可选(费用) |
| PlaceholderAPI |
可选 |
| EssentialsX |
可选(/home 覆盖) |
1.21.x 服务器必须保持在 1.3.3。仅限 Paper API(不支持 Spigot);未声明支持 Folia。
安装
- 将
teamhomegui-1.4.2.jar 放入 plugins/。
- 启动服务器;创建
plugins/Team-HomeGUI-Plugin/team-config.yml 和 home-config.yml。
- 编辑它们并使用
/team reload 应用(无需重启;管理员团队名称需要重启)。
从 1.3.x 升级:见下方的 数据和升级。
命令
玩家
| 命令 |
描述 |
/team create <name> |
创建团队(3–16 个字母、数字、下划线) |
/team invite <player> |
邀请玩家(所有者、管理员,如果允许则包括成员) |
/team invite accept / deny |
回答你收到的邀请(60 秒后过期) |
/team leave |
离开;所有者必须在 30 秒内重复此操作以解散团队 |
/team kick <player> |
踢出成员(所有者或管理员;只有所有者才能踢出管理员) |
/team info [team], /team members [team], /team list [page] |
查看团队 |
/team sethome |
将团队出生点设置为你所在的位置(所有者 / 管理员) |
/team delhome |
删除团队出生点(所有者 / 管理员) |
/team home |
传送到团队出生点 |
/team menu |
打开团队菜单(见 菜单) |
/team chat enable|disable |
将所有内容发送到团队聊天,或停止 |
/team msg <message> |
一条团队消息 |
/team color <color> |
更改团队颜色(所有者) |
/team rename <name> |
重命名团队(所有者 / 管理员);等同于 /team settings name <name> |
/team settings name <name> |
重命名团队 |
/team settings color <color> |
更改颜色 |
/team settings members-can-invite <on|off> |
允许成员邀请 |
/team settings promote <player> / demote <player> |
成为 / 移除管理员(降级:仅限所有者) |
/team settings transfer <player> |
将团队转让给另一位成员(所有者) |
/home · /sethome |
打开出生点菜单 |
/home <name> · /sethome <name> · /delhome <name> |
按名称传送至 / 设置 / 删除出生点 |
别名:/t 对应 /team。
服务器管理员 (teamplugin.admin)
| 指令 |
说明 |
/team admin create |
创建管理员团队(名称为 admin.team-name,默认为 Admin) |
/team admin add <player> |
将玩家移入管理员团队(若该玩家已拥有其他团队则无法操作) |
/team admin ban <player> / unban <player> |
禁止/允许使用管理员指令(操作员不能被禁止) |
/team admin manage <team> |
显示团队的详细信息 |
/team admin remove <team> |
解散一个团队(不能解散管理员团队) |
/team admin list [page] |
列出所有团队 |
/team admin homes <player> |
查看玩家的家园、数量上限及其来源(默认值、权限或上限) |
/team admin delhome <player> <home> |
删除玩家的某个家园(支持在线或缓存中的玩家) |
/team admin settings <team> <option> [value] |
更改任何团队的名称、颜色、邀请规则或角色 |
/team reload 或 /team admin reload |
重新加载两个配置文件(控制台可使用 /team reload) |
权限
| 权限 |
说明 |
默认值 |
teamplugin.admin |
/team admin ... 和 /team reload |
op |
teamplugin.homes.<n> |
允许设置 <n> 个个人家园(取最高值,但不得超过 max-homes-limit;声明了 teamplugin.homes.3/4/5) |
false |
teamplugin.home.nocooldown |
跳过家园传送冷却时间 |
op |
teamplugin.team.nocooldown |
跳过团队家园传送冷却时间 |
op |
teamplugin.player |
仅为兼容性而声明;相关指令并不依赖此权限 |
true |
所有其他指令对所有人开放。
菜单
团队菜单 (/team menu)
对于在团队中的玩家(5 行):
第 1 行: [ ][ ][ ][ ][i][ ][ ][ ][ ] i = 团队信息
第 2 行: [ ][M][I][ ][C][ ][H][ ][ ] M = 成员 · I = 邀请 · C = 团队聊天开关 · H = 个人家园
第 3 行: [ ][ ][T][S][D][ ][R][P][B] T = 传送到团队家园 · S = 设置 · D = 删除 · R = 重命名 · P = 颜色 · B = 成员可邀请
第 4 行: [ ][ ][ ][ ][ ][ ][ ][ ][ ]
第 5 行: [ ][ ][ ][ ][L][ ][ ][ ][X] L = 离开(成员)/ 解散(所有者)· X = 关闭
| 按钮 |
功能 |
适用对象 |
| Members |
显示所有成员的头像、角色及在线状态。点击成员可提升、降级、踢出或将所有权转移给他们。 |
所有人可见列表;所有者和管理员进行管理(只有所有者能降级、转移或踢出管理员) |
| Invite |
未加入任何团队的在线玩家;点击头像进行邀请 |
所有者、管理员,以及开启“成员可邀请”时的团队成员 |
| Team chat |
切换您自己的团队聊天开关 |
所有人 |
| Team home |
传送、设置(以当前站立位置为准)和删除(需确认) |
传送:所有人;设置/删除:所有者和管理员 |
| Rename |
关闭菜单;在聊天栏输入新名称(输入 cancel 取消) |
所有者和管理员 |
| Colour |
提供 16 种颜色的选择器 |
所有者和管理员 |
| Members can invite |
切换该规则 |
所有者和管理员 |
| Leave / Disband |
需确认后执行 |
成员离开;所有者解散 |
对于没有团队的玩家(3 行):创建团队(在聊天栏输入名称)、浏览团队列表、打开个人家园,以及响应待处理的邀请(左键点击加入,右键点击拒绝)。
每个按钮都运行与相应指令相同的代码,并在您点击时再次检查您的角色权限,因此旧菜单绝不可能执行您不再被允许的操作。所有标签均可在 team-config.yml 的 gui: 部分中进行更改。
家园菜单 (/home, /sethome)
第 1 行: [ ][ ][ ][ ][T][ ][ ][ ][ ] T = 团队家园(横幅)
第 2 行: [ ][ ][1][2][3][4][5][ ][ ] 个人家园(床图标)
第 3 行: [ ][ ][S][S][S][S][S][ ][ ] S = 设置(青绿色染料)/ 删除(红色染料),对应上方的家园
第 4 行: 填充物
第 5 行: 填充物
(确切槽位为 4, 11–15 和 20–24;菜单默认有 5 行,gui.rows 接受 3–6。)
删除确认界面在 3 行菜单的中间一行包含红色的 No、床和绿色的 Yes。
配置
两个文件均为纯 YAML 格式;缺失的键将回退到 jar 包内捆绑的默认值。
home-config.yml
| 键 |
默认值 |
说明 |
default-max-homes |
5 |
每个玩家可拥有的家园数量(可通过 teamplugin.homes.<n> 提升) |
max-homes-limit |
5 |
每位玩家的绝对上限,无论 default-max-homes 或权限如何设置(0 表示无上限)。仅在希望玩家保留超过 5 个家园时才提高此值;此时菜单仍显示前 5 个,其余通过名称访问。 |
gui.title, gui.rows, gui.filler-material, gui.show-coordinates |
&0Home &8- &0Menu, 5, GRAY_STAINED_GLASS_PANE, false |
菜单外观 |
teleport.cooldown |
3 |
两次传送之间的秒数(从你开始传送时计时) |
teleport.warmup |
5 |
倒数秒数(0 = 瞬间传送) |
teleport.freeze-on-warmup |
true |
玩家在等待期间无法移动,但仍可环顾四周 |
teleport.freeze-method |
attribute |
attribute: 应用临时的速度/跳跃修正,不会保存(平滑,但冻结时视角可能会轻微放大)。position: 将玩家位置重置(无放大效果,按住移动键时玩家会轻微抖动)。 |
teleport.cancel-on-move |
true |
当玩家改变方块位置(击退、掉落等)时取消传送。转动摄像机永远不会取消。 |
features.personal-homes, features.team-homes, features.sounds |
true |
关闭某项功能 |
disabled-worlds |
world_nether, world_the_end |
无法设置或使用家园的世界(名称或键)。文件中写入的内容即为生效内容:删除条目(或写入 disabled-worlds: [])以允许在下界和末地使用家园。 |
economy.enabled, economy.sethome-cost, economy.teleport-cost |
false, 100, 0 |
Vault 经济系统收费 |
messages.* |
|
所有家园消息 |
team-config.yml
| 配置键 |
默认值 |
说明 |
admin.team-name |
Admin |
管理员团队的名称 |
settings.min-team-name-length / max-team-name-length |
3 / 16 |
团队名称的长度限制 |
settings.max-members |
20 |
每个团队的最大成员数 |
settings.invite-timeout-seconds |
60 |
邀请的有效期时长(秒) |
settings.prompt-timeout-seconds |
30 |
菜单等待玩家在聊天中输入名称(创建新团队/重命名)的超时时间(秒) |
settings.chat-format, settings.global-format |
见文件 |
聊天布局格式(包含 {team}、{player}、{message} 占位符) |
features.team-chat, features.global-chat-prefix, features.team-homes |
true |
用于开关某项功能 |
features.friendly-fire |
false |
设为 true 允许友军伤害 |
damage.disable-pvp-between-members |
true |
当此项为 true 且 features.friendly-fire 为 false 时,阻止队友间的 PVP |
creation.default-invite-only, creation.default-members-can-invite |
true, false |
新团队的初始设置 |
teleport.cooldown |
3 |
团队家园传送冷却时间(秒) |
economy.enabled, economy.create-cost, economy.sethome-cost |
false, 500, 100 |
Vault 经济费用(团队家园传送使用 home-config.yml 中的 teleport-cost) |
disabled-worlds |
[] |
额外禁用团队家园功能的维度列表 |
messages.* |
|
所有团队消息(支持 & 颜色代码、&#rrggbb 十六进制颜色码、{placeholders} 占位符) |
gui.* |
|
团队菜单中的所有文本(标题、物品名称、描述) |
如果启用了收费功能但不存在 Vault 经济系统,则不会对任何人收费,并仅记录一次警告。
PlaceholderAPI
| 占位符 |
返回值 |
%team_name%, %team_colored_name%, %team_color% |
团队名称、着色名称、颜色代码 |
%team_role% |
所有者 / 管理员 / 成员 |
%team_count%, %team_owner% |
成员数量、所有者名称 |
%team_has_team%, %team_is_owner%, %team_is_admin% |
yes / no |
%team_has_home%, %team_home_world%, %team_home_x% / _y / _z |
团队家园信息(维度名称始终返回,即使该维度未加载) |
%team_homes_count%, %team_homes_max%, %team_homes_list%, %team_has_homes% |
个人家园相关数据 |
数据与升级
- 数据存储在
homes.yml 和 teams.yml 中。从 1.4.0 版本开始,位置信息存储为 world-key(维度键)、world(维度名称)、x、y、z、yaw(偏航角)、pitch(俯仰角)。
- 从 1.3.x 升级: 首次启动时会自动转换旧文件。原始文件首先被复制至
homes.yml.legacy-backup / teams.yml.legacy-backup。在启动时刻尚未加载的世界中的位置信息会保留在备份文件中,待世界加载后自动导入;随后备份文件会被重命名为 *.legacy-imported-<time>。
- 由 1.4.0 转换后的文件无法被 1.3.3 或更早版本读取。如果需要回退到旧版本,请保留备份文件。
- 如果数据文件无法解析,它将被复制为
*.corrupted-<time> 而不是作为空文件加载。
已知限制
- 每位玩家只有一个预热计时器:在预热期间发起第二次传送请求将被拒绝。
- 不支持 Folia(插件使用的是标准的 Bukkit 调度器)。
- Vault 和 PlaceholderAPI 是可选集成,基于它们的公开 API 构建;请在你的服务器版本上测试这些集成。
- Paper 插件通常不支持
/reload;请使用 /team reload 来重载配置文件。
更新日志
请参阅 CHANGELOG.md。
Team-HomeGUI-Plugin
🌐 English
Version: 1.4.2 | API: Paper 1.21 – 26.3 (Java 25) | Author: Duong2012G
A team system with menus for Paper servers: teams with roles, a team menu (/team menu) for everything a team can do, team chat,
a team home, up to 5 personal homes in a home menu, cooldowns and warmups, optional Vault charges, PlaceholderAPI placeholders and an
EssentialsX override for /home.
Features
| Category |
Feature |
| Team menu |
/team menu opens one menu for the team: info, members (promote / demote / kick / transfer), invite from a list of online players, team chat switch, team home (teleport / set / delete), rename, colour picker, invite rule, leave or disband. Actions that cannot be undone (delete the team home, leave, disband, kick, transfer) ask for a confirmation first. |
| Teams |
Create, invite (accept / deny), leave, kick, disband, rename, colour, list, info |
| Roles |
Owner / Admin / Member. Owners and admins invite, kick members, set the team home and change settings; only the owner can kick or demote an admin, transfer ownership or disband. Offline members can be kicked, promoted, demoted and given ownership. |
| Team chat |
/team chat enable|disable (all your messages go to the team) and /team msg <text>; an optional [team] prefix in global chat. Chat text is never colour-translated. |
| Team home |
/team sethome, /team delhome (owner / admin) and /team home, or the buttons in the team menu and the banner in the home menu |
| Personal homes |
The menu shows 5; with /sethome <name> a player can also keep homes by name, but the total never goes above their limit: default-max-homes, raised by a teamplugin.homes.<n> permission, and never above the ceiling max-homes-limit (5 by default) |
| Home menu |
/home / /sethome: bed icons to teleport, lime / red dye to set / delete, a confirmation menu before deleting; all inventories are locked against clicks and drags |
| Safe data |
Positions are stored with the world's key and name and resolved only when you teleport, so a home is never lost because its world is not loaded. Files are written atomically on a background thread. |
| Cooldown & warmup |
Cooldown per player; a warmup with an action-bar countdown. During the warmup the player cannot walk but can still look around (optional); it is cancelled by a change of block, a teleport or death. A cancelled warmup costs nothing. |
| Economy |
Vault charges for setting a home, teleporting, creating a team and setting the team home (all off by default) |
| Friendly fire |
Blocks damage between team members from every source: melee, arrows, tridents, potions, TNT. You can still hurt yourself. |
| PlaceholderAPI |
%team_*% placeholders |
| EssentialsX |
/home, /sethome and /delhome (also as /essentials:home ...) always reach this plugin |
| Admin tools |
/team admin ... for people with teamplugin.admin, with an admin ban list |
Requirements
| Dependency |
Required |
Paper 26.3 (compiled against the 26.3 API; api-version: 26.1, so 26.1 / 26.2 may load it, only 26.3 was targeted) |
✅ |
| Java 25 |
✅ |
| Vault + an economy plugin |
Optional (charges) |
| PlaceholderAPI |
Optional |
| EssentialsX |
Optional (the /home override) |
Servers on 1.21.x must stay on 1.3.3. Paper API only (no Spigot); Folia is not declared supported.
Installation
- Put
teamhomegui-1.4.2.jar into plugins/.
- Start the server;
plugins/Team-HomeGUI-Plugin/team-config.yml and home-config.yml are created.
- Edit them and apply with
/team reload (no restart needed; the admin team name needs a restart).
Upgrading from 1.3.x: see Data and upgrading below.
Commands
Players
| Command |
Description |
/team create <name> |
Create a team (3–16 letters, digits, underscores) |
/team invite <player> |
Invite a player (owner, admins, and members if allowed) |
/team invite accept / deny |
Answer the invite you received (expires after 60 s) |
/team leave |
Leave; the owner must repeat it within 30 s to disband the team |
/team kick <player> |
Kick a member (owner or admin; only the owner can kick an admin) |
/team info [team], /team members [team], /team list [page] |
Look at teams |
/team sethome |
Set the team home to where you stand (owner / admin) |
/team delhome |
Delete the team home (owner / admin) |
/team home |
Teleport to the team home |
/team menu |
Open the team menu (see Menus) |
/team chat enable|disable |
Send everything to team chat, or stop |
/team msg <message> |
One team message |
/team color <color> |
Change the team colour (owner) |
/team rename <name> |
Rename the team (owner / admin); same as /team settings name <name> |
/team settings name <name> |
Rename the team |
/team settings color <color> |
Change the colour |
/team settings members-can-invite <on|off> |
Let members invite |
/team settings promote <player> / demote <player> |
Make / remove an admin (demote: owner only) |
/team settings transfer <player> |
Give the team to another member (owner) |
/home · /sethome |
Open the home menu |
/home <name> · /sethome <name> · /delhome <name> |
Teleport to / set / delete a home by name |
Alias: /t for /team.
Server admins (teamplugin.admin)
| Command |
Description |
/team admin create |
Create the admin team (name: admin.team-name, default Admin) |
/team admin add <player> |
Move a player into the admin team (not possible while they own another team) |
/team admin ban <player> / unban <player> |
Ban from / allow the admin commands (operators cannot be banned) |
/team admin manage <team> |
Show a team's details |
/team admin remove <team> |
Disband a team (not the admin team) |
/team admin list [page] |
List all teams |
/team admin homes <player> |
A player's homes, their limit and where it comes from (default, permissions, ceiling) |
/team admin delhome <player> <home> |
Delete one of a player's homes (online or cached players) |
/team admin settings <team> <option> [value] |
Change any team's name, colour, invite rule or roles |
/team reload or /team admin reload |
Reload both config files (the console can use /team reload) |
Permissions
| Permission |
Description |
Default |
teamplugin.admin |
/team admin ... and /team reload |
op |
teamplugin.homes.<n> |
Allows <n> personal homes (the highest wins, but never above max-homes-limit; teamplugin.homes.3/4/5 are declared) |
false |
teamplugin.home.nocooldown |
Skip the home teleport cooldown |
op |
teamplugin.team.nocooldown |
Skip the team home cooldown |
op |
teamplugin.player |
Declared for compatibility; the commands do not require it |
true |
All other commands are available to everybody.
Menus
Team menu (/team menu)
For a player in a team (5 rows):
Row 1: [ ][ ][ ][ ][i][ ][ ][ ][ ] i = team info
Row 2: [ ][M][I][ ][C][ ][H][ ][ ] M = members · I = invite · C = team chat on/off · H = personal homes
Row 3: [ ][ ][T][S][D][ ][R][P][B] T = teleport to team home · S = set · D = delete · R = rename · P = colour · B = members can invite
Row 4: [ ][ ][ ][ ][ ][ ][ ][ ][ ]
Row 5: [ ][ ][ ][ ][L][ ][ ][ ][X] L = leave (members) / disband (owner) · X = close
| Button |
What it does |
Who |
| Members |
Heads of all members with their role and online status. Click a member to promote, demote, kick or transfer ownership to them. |
Everybody sees the list; owner / admins manage (only the owner demotes, transfers, or kicks an admin) |
| Invite |
Online players who are not in a team; click a head to invite |
Owner, admins, and members when "members can invite" is on |
| Team chat |
Turns team chat on or off for you |
Everybody |
| Team home |
Teleport, set (where you stand) and delete (after a confirmation) |
Teleport: everybody; set / delete: owner and admins |
| Rename |
Closes the menu; type the new name in chat (cancel aborts) |
Owner and admins |
| Colour |
A picker with the 16 colours |
Owner and admins |
| Members can invite |
Switches the rule |
Owner and admins |
| Leave / Disband |
After a confirmation |
Members leave; the owner disbands |
For a player without a team (3 rows): create a team (type the name in chat), browse the team list, open the personal homes, and answer a
pending invitation (left-click to join, right-click to decline).
Every button runs the same code as the matching command and checks your role again when you click, so an old menu can never do something
you are no longer allowed to do. All labels can be changed in the gui: section of team-config.yml.
Home menu (/home, /sethome)
Row 1: [ ][ ][ ][ ][T][ ][ ][ ][ ] T = Team home (banner)
Row 2: [ ][ ][1][2][3][4][5][ ][ ] personal homes (bed icons)
Row 3: [ ][ ][S][S][S][S][S][ ][ ] S = set (lime dye) / delete (red dye) for the home above
Row 4: filler
Row 5: filler
(The exact slots are 4, 11–15 and 20–24; the menu has 5 rows by default, gui.rows accepts 3–6.)
The delete confirmation has a red No, the bed, and a green Yes in the middle row of a 3-row menu.
Configuration
Both files are plain YAML; keys that are missing fall back to the defaults bundled in the jar.
home-config.yml
| Key |
Default |
Description |
default-max-homes |
5 |
Homes everybody may have (raised by teamplugin.homes.<n>) |
max-homes-limit |
5 |
The ceiling for every player, whatever default-max-homes or a permission says (0 = no ceiling). Raise it only if players should keep more than 5 homes; the menu then still shows the first 5 and the rest are used by name. |
gui.title, gui.rows, gui.filler-material, gui.show-coordinates |
&0Home &8- &0Menu, 5, GRAY_STAINED_GLASS_PANE, false |
Look of the menu |
teleport.cooldown |
3 |
Seconds between teleports (starts when you teleport) |
teleport.warmup |
5 |
Countdown in seconds (0 = instant) |
teleport.freeze-on-warmup |
true |
The player cannot walk during the warmup but can still look around |
teleport.freeze-method |
attribute |
attribute: a temporary speed / jump modifier that is never saved (smooth, but the view may zoom in slightly while frozen). position: the position is put back (no zoom, the player shakes a little when holding a movement key). |
teleport.cancel-on-move |
true |
Cancel when the player changes block (knockback, falling, ...). Turning the camera never cancels. |
features.personal-homes, features.team-homes, features.sounds |
true |
Switch a feature off |
disabled-worlds |
world_nether, world_the_end |
Worlds (name or key) where homes cannot be set or used. What is written in your file is what applies: delete the entries (or write disabled-worlds: []) to allow homes in the Nether and the End. |
economy.enabled, economy.sethome-cost, economy.teleport-cost |
false, 100, 0 |
Vault charges |
messages.* |
|
All home messages |
team-config.yml
| Key |
Default |
Description |
admin.team-name |
Admin |
Name of the admin team |
settings.min-team-name-length / max-team-name-length |
3 / 16 |
Name length |
settings.max-members |
20 |
Members per team |
settings.invite-timeout-seconds |
60 |
How long an invite lasts |
settings.prompt-timeout-seconds |
30 |
How long the menu waits for a name typed in chat (new team / rename) |
settings.chat-format, settings.global-format |
see file |
Chat layouts ({team} {player} {message}) |
features.team-chat, features.global-chat-prefix, features.team-homes |
true |
Switch a feature off |
features.friendly-fire |
false |
true allows friendly fire |
damage.disable-pvp-between-members |
true |
Friendly fire is blocked when this is true and features.friendly-fire is false |
creation.default-invite-only, creation.default-members-can-invite |
true, false |
Settings of new teams |
teleport.cooldown |
3 |
Team home cooldown |
economy.enabled, economy.create-cost, economy.sethome-cost |
false, 500, 100 |
Vault charges (a team home teleport uses home-config.yml's teleport-cost) |
disabled-worlds |
[] |
Extra worlds where the team home is unavailable |
messages.* |
|
All team messages (& colours, &#rrggbb hex colours, {placeholders}) |
gui.* |
|
Every text of the team menu (titles, item names, descriptions) |
If charging is enabled but no Vault economy exists, nobody is charged and a warning is logged once.
PlaceholderAPI
| Placeholder |
Returns |
%team_name%, %team_colored_name%, %team_color% |
Team name, coloured name, colour code |
%team_role% |
Owner / Admin / Member |
%team_count%, %team_owner% |
Member count, owner name |
%team_has_team%, %team_is_owner%, %team_is_admin% |
yes / no |
%team_has_home%, %team_home_world%, %team_home_x% / _y / _z |
Team home information (the world is given by name, even if not loaded) |
%team_homes_count%, %team_homes_max%, %team_homes_list%, %team_has_homes% |
Personal homes |
Data and upgrading
- Data lives in
homes.yml and teams.yml. From 1.4.0 positions are stored as world-key, world, x, y, z, yaw, pitch.
- From 1.3.x: on first start the old files are converted. The original file is first copied to
homes.yml.legacy-backup / teams.yml.legacy-backup. Positions in worlds that are not loaded at that moment stay in the backup
and are imported automatically as soon as the world loads; then the backup is renamed *.legacy-imported-<time>.
- Files converted by 1.4.0 cannot be read by 1.3.3 or older. Keep the backups if you might go back.
- A data file that cannot be parsed is copied to
*.corrupted-<time> instead of being loaded as empty.
Known limitations
- One warmup per player: a second teleport request during a warmup is refused.
- Folia is not supported (the plugin uses the regular Bukkit scheduler).
- Vault and PlaceholderAPI are optional integrations that were built against their public APIs; test them on your server version.
/reload is not supported by Paper plugins in general; use /team reload for the configs.
Changelog
See CHANGELOG.md.
评论 0
登录后参与评分
还没有评论,来抢沙发吧