[!NOTE] 欢迎对此模组进行 Fork 和贡献。
Allied
一款面向 Fabric 的服务端团队模组。通过 /allied 命令即可创建带有标签的团队、邀请玩家、进行私密聊天、共享航点与储物空间,并控制友军伤害。
前置要求
- Minecraft 26.2, Fabric Loader 0.19.5+
- Fabric API(必需)
- Placeholder API(可选,参见 占位符)
- 仅限服务端。 玩家使用原版客户端即可加入。该模组仅在专用服务器上运行,不支持单人游戏或局域网世界。
功能特性
- 带标签的团队: 彩色
[TAG]会显示在聊天栏、玩家列表以及玩家头顶上方 - 邀请与加入请求: 支持点击的
[ACCEPT](接受)/[DENY](拒绝)按钮。即使对离线玩家也有效,他们登录时会看到待处理的邀请 - 角色权限: 一名队长和任意数量的副官。副官可以邀请、接受和拒绝请求,踢出成员并移除标记
- 所有权转让: 当队长停止游戏时,确保团队不会因此陷入停滞
- 团队聊天: 通过
/allied tm切换开启或关闭 - 友军伤害: 可针对每个团队单独设置开关
- 高亮显示: 隐身状态下的队友会以半透明且带有发光轮廓的形式显示,仅对你的团队可见
- 死亡坐标: 当队友死亡时,你的团队会看到其死亡位置(点击即可复制坐标)
- 标记(Marks): 团队共享的命名坐标点。仅提供信息展示,不可传送
- 共享团队储物空间: 一个 18 格的箱子,全团队共用,同一时间只能有一名玩家操作。防物品复制漏洞,且完全记录日志
- 支持 Placeholder API: 可用于聊天、标签页及计分板模组
命令
团队管理
/allied create <teamName> <teamTag>创建新团队并成为其所有者/allied info显示你所在团队的名称、标签、所有者、副官和成员(在线玩家以绿色显示)/allied leave离开当前所在的团队/allied disband解散团队。如果团队储物箱中有物品则不允许执行 (仅限所有者)/allied set <name|tag|color> <value>修改团队的名称、标签或标签颜色 (仅限所有者)/allied settings显示团队设置,并提供更改设置的按钮 (仅限所有者)/allied tm切换团队聊天开关
成员管理
/allied invite <playerName>邀请玩家,即使是离线状态也可以 (仅限所有者/副官)/allied invAccept <teamName>接受邀请/allied invDeny <teamName>拒绝邀请/allied join <teamName>申请加入某个团队/allied accept <playerName>同意加入请求 (仅限所有者/副官)/allied deny <playerName>拒绝加入请求 (仅限所有者/副官)/allied kick <playerName>踢出玩家,即使是离线状态也可以。副官只能踢出普通成员 (仅限所有者/副官)
角色管理
/allied promote <playerName>将某成员提升为副官 (仅限所有者)/allied demote <playerName>剥夺某玩家的副官职位 (仅限所有者)/allied transfer <playerName>在确认点击后,将团队所有权转让给其他成员。你将变为副官 (仅限所有者)
标记 (Marks)
/allied mark <name>将你当前的位置保存为团队的一个标记/allied mark <name> <x> <y> <z>保存特定的坐标/allied marks列出你团队的所有标记及其坐标、维度与距离/allied unmark <name>移除一个标记(设置者、副官和所有者均可执行)
每个团队最多可拥有 30 个标记。
储物空间
/allied storage打开共享的团队储物空间。需先由管理员启用
团队设置
所有者可通过 /allied settings 更改以下设置:
| 设置项 | 默认值 | 说明 |
|---|---|---|
friendlyFire |
off | 队友之间可以互相造成伤害 |
highlight |
off | 隐身队友显示轮廓,仅对本队可见 |
allowRequests |
on | 允许玩家通过 /allied join 申请加入 |
chatUseTag |
on | 在聊天中显示团队标签(关闭则显示完整团队名称) |
tabUseTag |
on | 在玩家列表中显示团队标签(关闭则显示完整团队名称) |
deathCoords |
on | 向团队发送队友的死亡坐标 |
团队储物空间
一个供团队使用的 18 格共享箱子,通过 /allied storage 打开。它使用原版标准箱子的界面。
- 同一时间仅一人操作。 如果其他人正在打开,系统会提示是谁在使用,并在对方关闭后让你重试
- 防止物品复制。 内容会在每次更改、每次自动保存前以及关闭时保存,并与玩家的背包一起存储。即使服务器崩溃,也无法复制物品
- 日志记录。 每次打开和关闭都会写入
config/allied/storage/audit.log,包含时间、玩家以及添加或移除了什么物品 - 默认禁用。 管理员可按团队或全员启用(详见下文)
- 如果储物箱中有物品,团队无法被解散
管理员命令
需要操作员(OP)权限。
团队
/alliedAdmin list列出服务器上的所有队伍/alliedAdmin info <teamName>显示任意队伍的信息/allledAdmin modifySettings <teamName> [<setting> <boolean>]查看或更改任何队伍的设置/alliedAdmin blockSettings <teamName> <boolean>阻止队伍所有者更改其设置/alliedAdmin transfer <teamName> <playerName>将队伍转让给其中一名成员,适用于原所有者不再游玩的情况
存储
/alliedAdmin storage <teamName> <boolean>为指定队伍启用或禁用队伍存储功能/alliedAdmin storageAll <boolean>为所有队伍启用或禁用队伍存储功能,并设置新队伍是否默认开启此功能
服务器设置
/alliedAdmin memberCap <value>每支队伍的最大成员数(不包括所有者,默认为 5)/alliedAdmin maxTeamNameLength <value>队伍名称最大长度(默认为 16)/alliedAdmin maxTeamTagLength <value>队伍标签最大长度(默认为 4)/alliedAdmin exportJson <boolean>保持config/allied/teams.json随每个队伍更新,便于在网站上展示队伍信息/alliedAdmin reset [<code>]清除所有 Allied 数据。会生成一个有效期为 60 秒的确认码以完成操作
除 reset 外,所有管理员命令均可从服务器控制台执行。
占位符
如果安装了 Placeholder API,Allied 会提供以下占位符(未加入队伍的玩家对应值为空):
%allied:team_name%队伍名称%allied:team_tag%队伍标签%allied:team_color%队伍颜色%allied:team_prefix%标签页列表中使用的带颜色的[TAG]前缀%allied:team_members%队伍中的玩家数量(包含所有者)
数据文件
所有内容均存储在 config/allied/ 目录下:
teams.dat所有队伍数据(NBT 格式,安全保存以防止崩溃导致损坏)。旧版本的文件会自动升级teams.json所有队伍的可读导出文件,仅在exportJson开启时生成storage/<team-id>.dat各队伍的存储内容storage/audit.log存储功能的打开/关闭日志
本说明当前与模组 v2.0.0 版本保持一致
如果你喜欢该模组,请考虑捐赠以支持我的开发工作
任何问题、错误或建议请提交至 GitHub Issue 页面
该模组的灵感来源于 Fabric 平台上缺乏最新的团队类模组
感谢你使用我的模组 <3
[!NOTE] Forks and contributions to this mod are welcome.
Allied
A server-side team mod for Fabric. Create teams with tags, invite players, chat privately, share waypoints and storage, and control friendly fire, all from /allied.
Requirements
- Minecraft 26.2, Fabric Loader 0.19.5+
- Fabric API (required)
- Placeholder API (optional, see Placeholders)
- Server-side only. Players join with a normal vanilla client. The mod runs on dedicated servers, not in singleplayer or LAN worlds
Features
- Teams with tags: a coloured
[TAG]shows in chat, in the tab list and above players' heads - Invites and join requests with clickable
[ACCEPT]/[DENY]buttons. Works for offline players, who see pending invites when they log in - Roles: one owner and any number of officers. Officers can invite, accept and deny requests, kick members and remove marks
- Ownership transfer, so a team isn't stuck when its owner stops playing
- Team chat toggled with
/allied tm - Friendly fire toggle per team
- Highlight: invisible teammates show as translucent with a glowing outline, visible only to your own team
- Death coordinates: when a teammate dies, your team sees where (click to copy)
- Marks: shared named coordinates for your team. Pure information, no teleporting
- Shared team storage: an 18-slot chest the whole team can use, one player at a time, safe against item duplication and fully logged
- Placeholder API support for chat, tab and scoreboard mods
Commands
Teams
/allied create <teamName> <teamTag>Create a new team and become its owner/allied infoShow your team's name, tag, owner, officers and members (online players in green)/allied leaveLeave your current team/allied disbandDisband the team. Not allowed while the team storage has items in it (Owner)/allied set <name|tag|color> <value>Change the team's name, tag or tag colour (Owner)/allied settingsShow the team settings with buttons to change them (Owner)/allied tmToggle team chat
Members
/allied invite <playerName>Invite a player, even if they're offline (Owner/Officer)/allied invAccept <teamName>Accept an invite/allied invDeny <teamName>Deny an invite/allied join <teamName>Ask to join a team/allied accept <playerName>Accept a join request (Owner/Officer)/allied deny <playerName>Deny a join request (Owner/Officer)/allied kick <playerName>Kick a player, even if they're offline. Officers can only kick members (Owner/Officer)
Roles
/allied promote <playerName>Make a member an officer (Owner)/allied demote <playerName>Remove a player's officer rank (Owner)/allied transfer <playerName>Give the team to another member after a confirmation click. You become an officer (Owner)
Marks
/allied mark <name>Save your current position as a mark for your team/allied mark <name> <x> <y> <z>Save specific coordinates/allied marksList your team's marks with coordinates, dimension and distance/allied unmark <name>Remove a mark (the player who set it, officers and the owner)
Each team can have up to 30 marks.
Storage
/allied storageOpen the shared team storage. It has to be enabled by an admin first
Team Settings
The owner changes these with /allied settings:
| Setting | Default | What it does |
|---|---|---|
friendlyFire |
off | Teammates can damage each other |
highlight |
off | Invisible teammates show with an outline, only to your team |
allowRequests |
on | Players can ask to join with /allied join |
chatUseTag |
on | Show the team tag in chat (off shows the full team name) |
tabUseTag |
on | Show the team tag in the tab list (off shows the full team name) |
deathCoords |
on | Send teammates' death coordinates to the team |
Team Storage
An 18-slot shared chest for the team, opened with /allied storage. It uses a normal vanilla chest screen.
- One player at a time. If someone else has it open, you're told who and can try again when they close it
- Can't duplicate items. Contents are saved on every change, before every autosave and on close, together with the player's inventory. Even if the server crashes, items can't be duplicated
- Logged. Every open and close is written to
config/allied/storage/audit.logwith the time, player, and what was added and taken - Disabled by default. Admins enable it per team or for everyone (see below)
- A team can't be disbanded while its storage has items in it
Admin Commands
Requires operator permission.
Teams
/alliedAdmin listList all teams on the server/alliedAdmin info <teamName>Show the info of any team/alliedAdmin modifySettings <teamName> [<setting> <boolean>]View or change any team's settings/alliedAdmin blockSettings <teamName> <boolean>Stop a team's owner from changing their settings/alliedAdmin transfer <teamName> <playerName>Give a team to one of its members, for teams whose owner stopped playing
Storage
/alliedAdmin storage <teamName> <boolean>Enable or disable team storage for one team/alliedAdmin storageAll <boolean>Enable or disable team storage for every team, and set whether new teams start with it
Server settings
/alliedAdmin memberCap <value>Maximum members per team, not counting the owner (default 5)/alliedAdmin maxTeamNameLength <value>Maximum team name length (default 16)/alliedAdmin maxTeamTagLength <value>Maximum team tag length (default 4)/alliedAdmin exportJson <boolean>Keepconfig/allied/teams.jsonupdated with every team, useful for showing teams on a website/alliedAdmin reset [<code>]Wipe all Allied data. Gives you a code that's valid for 60 seconds to confirm
All admin commands except reset also work from the server console.
Placeholders
If Placeholder API is installed, Allied adds these placeholders (empty for players without a team):
%allied:team_name%The team's name%allied:team_tag%The team's tag%allied:team_color%The team's colour%allied:team_prefix%The coloured[TAG]prefix used in the tab list%allied:team_members%Number of players in the team, owner included
Data Files
Everything is stored in config/allied/:
teams.datAll team data (NBT, saved safely so a crash can't corrupt it). Older versions' files are upgraded automaticallyteams.jsonReadable export of all teams, only whenexportJsonis onstorage/<team-id>.datEach team's storage contentsstorage/audit.logStorage open/close log
This description is currently up to date with v2.0.0 of the mod
If you like the mod, please consider donating to support my development
Any issues, bugs or suggestions are to be put on the GitHub issue page
The mod's inspiration came from there not being any up-to-date team mods for Fabric
Thank you for using my mod <3
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Allied: Teams
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Allied v2.0.0 适用于 Minecraft 26.2
一项大型功能更新。现有的队伍数据会自动升级,因此无需更改任何设置。
新增
- 职位: 军官等级,支持使用
/allied promote <player>和/allied demote <player>。军官可以邀请、接受或拒绝加入请求,踢出成员并移除标记 - 所有权转移:
/allied transfer <player>在确认点击后将你的队伍移交给一名成员。你将成为一名军官 - 管理员救援:
/alliedAdmin transfer <team> <player>将一支被遗弃的队伍分配给其成员之一 - 离线邀请:
/allied invite、kick、accept和deny现在对离线玩家也有效。待处理的邀请和加入请求在他们登录时会以可点击按钮的形式显示 - 死亡坐标: 当队友死亡时,只有你的队伍会看到死亡地点。点击坐标即可复制。通过
/allied settings中的deathCoords设置进行切换 - 标记: 队伍共享的命名坐标
/allied mark <name> [x y z]保存你当前站立的位置或精确坐标/allied marks列出所有标记及其与你的距离/allied unmark <name>移除其中一个标记- 纯信息共享功能,不支持传送
- 队伍共享存储:
/allied storage打开一个由队伍共享的 18 格箱子- 同一时间只能有一名玩家打开它
- 每次更改都会自动保存,即使服务器崩溃也能防止物品重复
- 每次打开和关闭操作都会记录到
config/allied/storage/audit.log中,包含添加和取出的物品信息 - 默认禁用:使用
/alliedAdmin storage <team> true为特定队伍启用,或使用/alliedAdmin storageAll true为所有队伍及新队伍启用
- 队伍信息:
/allied info现在显示军官名单以及按名称列出的离线成员
注意事项
- 仅服务端模组。玩家无需安装任何内容
- 如果队伍存储中有物品,则无法解散该队伍
依赖项
- 必需: Fabric API
- 可选: Placeholder API
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧