TeamCommand
本模组为 Minecraft 添加了一个新命令,允许玩家创建并管理自己的队伍。该命令类似于你从其他模组中可能熟知的派系(factions),但基于仅管理员可用的原版 /team 命令。

命令
/t create <name> <color> 创建一个新队伍并成为其首位成员。
/t list [<team>] 列出所有队伍或特定队伍中的玩家。
/t invite <player> 邀请新玩家加入你的队伍。
/t accept 接受最后一次邀请并加入队伍。
/t set
displayName <name> 更改队伍的显示名称。
color <color> 更改队伍的颜色。
friendlyFire <allowed> 指定队伍内的玩家是否可以互相造成伤害。
seeInvisibles <allowed> 指定队伍成员是否可以看见隐形的队友。
/t leave 离开当前队伍。
此外,玩家可以使用任何与队伍集成的原版或模组功能,例如使用 /teammsg 向所有队友发送聊天消息。
配置
模组的配置文件位于服务器配置文件夹中的 teamcommand.toml。
commandName: 新队伍命令的名称 (默认值: t)。
allowDuplicateColors: 指定是否允许多个队伍拥有相同的颜色 (默认值: true)。
allowDuplicateDisplaynames: 指定是否允许多个队伍拥有相同的名称 (默认值: false)。
prefixFormat: 一个格式字符串,用于根据显示名称确定队伍前缀 (默认值: [%.1s] )。
prefixUseTeamColor: 指定前缀是否使用队伍颜色或次要颜色 (默认值: false)。
suffixFormat: 一个格式字符串,用于根据显示名称确定队伍后缀 (默认值: 空字符串)。
suffixUseTeamColor: 指定后缀是否使用队伍颜色或次要颜色 (默认值: false)。
前缀与后缀格式字符串
前缀和后缀的格式字符串会传入队伍的显示名称。你可以在此查看 Java 格式字符串的官方语法 这里。
示例:
[%.1s] 在方括号中显示显示名称的第一个字母(默认前缀)
- (空字符串) 不显示任何内容(默认后缀)
TEAM %s 显示字母“TEAM”、一个空格和队伍名称
%S 大写形式的队伍名称
%.3S 大写形式的队伍名称的前三个字母
建议在前缀末尾和后缀开头保留空格,以防止它们看起来像是玩家名字的一部分。
限制
- 队伍中没有层级结构,任何人都可以邀请新成员。
- 无法更改队伍的实际名称,只能更改显示名称。
- 如果禁用了
allowDuplicateColors,队伍数量将限制为 16 个,因为 Minecraft 只允许 16 种颜色。
TeamCommand
This mod adds a new command to Minecraft which allows players to create and manage their own teams. The command is
similar to factions which you might know from other mods but is based on the Vanilla /team command which only
operators can use.

Commands
/t create <name> <color> Create a new team and be its first member.
/t list [<team>] Lists all teams or the players in a specific team.
/t invite <player> Invite a new player to join your team.
/t accept Accept the last invitation and join the team.
/t set
displayName <name> Change the displayed name of your team.
color <color> Change the color of your team.
friendlyFire <allowed> Specify wether players in your team can inflict damage to each other or not.
seeInvisibles <allowed> Specify wether members of your team can see invisible teammates.
/t leave Leave your current team.
Additionally, players can use every vanilla or modded feature integrated with teams like /teammsg to send a chat
message to all teammates.
Configuration
The mods configuration file is located at teamcommand.toml in your servers config folder.
commandName: The name of the new team command (default: t).
allowDuplicateColors: Specify wether there can be multiple teams with the same color (default: true).
allowDuplicateDisplaynames: Specify wether there can be multiple teams with the same name (default: false).
prefixFormat: A format string which will determine the team prefix based on the displayName (default: [%.1s] ).
prefixUseTeamColor: Wether the prefix will be in the teams color or a secondary color. (default: false)
suffixFormat: A format string which will determine the team suffix based on the displayName (default: empty string)
suffixUseTeamColor: Wether the suffix will be in the teams color or a secondary color. (default: false)
Prefix & Suffix Format Strings
The format string for prefix and suffix is passed the displayed name of the team. You can look up the official syntax for
java format strings here.
Examples:
[%.1s] display the first letter of the displayed name in square brackets (default prefix)
- (empty string) display nothing (default suffix)
TEAM %s display the letters "TEAM", a whitespace and the team name
%S the team name in uppercase characters
%.3S the first three letters of the team name in uppercase characters
It is recommeded to end the prefix and begin the suffix with a whitespace to prevent them from looking like a part of
the players name.
Limitations
- There is no hierarchy in teams, everybody can invite new members.
- It's not possible to change the actual name of a team, only the displayed name.
- The amount of teams is limited at 16 if
allowDuplicateColors is disabled as Minecraft only allows 16 colors.
评论 0
登录后参与评分
还没有评论,来抢沙发吧