- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
ChatControl Pro/WIKI/变量:修订间差异
Qsefthuopq(留言 | 贡献) (创建页面,内容为“ 变量可以用于表示实际的数据. 如: {player} 代表玩家名. ChatControl支持成千上万的变量并且你可以创建属于你的变量. === 对于…”) |
Qsefthuopq(留言 | 贡献) 无编辑摘要 |
||
(未显示同一用户的3个中间版本) | |||
第1行: | 第1行: | ||
{{模板:Ccpbox}} | |||
变量可以用于表示实际的数据. 如: {player} 代表玩家名. ChatControl支持成千上万的变量并且你可以创建属于你的变量. | 变量可以用于表示实际的数据. 如: {player} 代表玩家名. ChatControl支持成千上万的变量并且你可以创建属于你的变量. | ||
<big>'''对于在variables/javascript.txt内创建变量的教程,请往查看[[ChatControl Pro/WIKI/JavaScript变量]]'''</big> | |||
= 插件变量 = | = 插件变量 = | ||
以下变量由插件提供而无需第三方插件: | 以下变量由插件提供而无需第三方插件: | ||
* ChatControl 本身: {prefix}, {server_name}, {nms_version}, {timestamp}, {country_code} 和 {country_name}, {region_name} 和 {isp} | * [[ChatControl Pro|ChatControl]] 本身: {prefix}, {server_name}, {nms_version}, {timestamp}, {country_code} 和 {country_name}, {region_name} 和 {isp} | ||
* Bukkit (你的服务器): {player}, {pl_address}, {tab_name}, {display_name}, {world} 和 {health} | * Bukkit (你的服务器): {player}, {pl_address}, {tab_name}, {display_name}, {world} 和 {health} | ||
* Essentials 或 Nicky: {nick} | * [[Essentials]] 或 Nicky: {nick} | ||
* Vault: {pl_prefix}, {pl_suffix}, {pl_group} 和 {pl_primary_group} | * Vault: {pl_prefix}, {pl_suffix}, {pl_group} 和 {pl_primary_group} | ||
* Towny: {town} 和 {nation} | * [[Towny]]: {town} 和 {nation} | ||
* SimpleClans: {clan} | * SimpleClans: {clan} | ||
* Factions (free): {faction} | * Factions (free): {faction} | ||
* Nametags: {nametags_prefix} 和 {nametags_suffix} | * Nametags: {nametags_prefix} 和 {nametags_suffix} | ||
== 带“+”的变量 == | |||
Some variables support the + operator at their end which will display an additional space when the variable is not null. | |||
Example: If the player has faction, the message is "[Faction] kangarko: test", however if he does not have any faction we simply print "kangarko: test" without the annoying space " " before the player name. | |||
支持变量: | |||
* {pl_prefix+} | |||
* {pl_suffix+} | |||
* {pl_group+} | |||
* {nick+} | |||
* {town+} | |||
* {nation+} | |||
* {faction+} | |||
* {clan+} | |||
* {world+} | |||
If you know a little bit of Javascript, you can easily code in this system for ANY variable (even those from PlaceholderAPI) using our custom variables. | |||
== SimpleClans == | == SimpleClans == | ||
如果你安装了PlaceholderAPI, ChatControl为SimpleClans添加变量到PlaceholderAPI. | 如果你安装了PlaceholderAPI, ChatControl为SimpleClans添加变量到PlaceholderAPI. |
2019年4月15日 (一) 14:33的最新版本
子页面
变量可以用于表示实际的数据. 如: {player} 代表玩家名. ChatControl支持成千上万的变量并且你可以创建属于你的变量.
对于在variables/javascript.txt内创建变量的教程,请往查看ChatControl Pro/WIKI/JavaScript变量
插件变量
以下变量由插件提供而无需第三方插件:
- ChatControl 本身: {prefix}, {server_name}, {nms_version}, {timestamp}, {country_code} 和 {country_name}, {region_name} 和 {isp}
- Bukkit (你的服务器): {player}, {pl_address}, {tab_name}, {display_name}, {world} 和 {health}
- Essentials 或 Nicky: {nick}
- Vault: {pl_prefix}, {pl_suffix}, {pl_group} 和 {pl_primary_group}
- Towny: {town} 和 {nation}
- SimpleClans: {clan}
- Factions (free): {faction}
- Nametags: {nametags_prefix} 和 {nametags_suffix}
带“+”的变量
Some variables support the + operator at their end which will display an additional space when the variable is not null.
Example: If the player has faction, the message is "[Faction] kangarko: test", however if he does not have any faction we simply print "kangarko: test" without the annoying space " " before the player name.
支持变量:
- {pl_prefix+}
- {pl_suffix+}
- {pl_group+}
- {nick+}
- {town+}
- {nation+}
- {faction+}
- {clan+}
- {world+}
If you know a little bit of Javascript, you can easily code in this system for ANY variable (even those from PlaceholderAPI) using our custom variables.
SimpleClans
如果你安装了PlaceholderAPI, ChatControl为SimpleClans添加变量到PlaceholderAPI.
SimpleClan 变量1 | SimpleClan 变量2 |
---|---|
{simpleclans_in_clan} | {simpleclans_clan_tag} |
{simpleclans_join_date} | {simpleclans_clan_color_tag} |
{simpleclans_rank} | {simpleclans_founded_string} |
{simpleclans_tag} | {simpleclans_name} |
{simpleclans_tag_label} | {simpleclans_average_wk} |
{simpleclans_rank} | {simpleclans_balance} |
{simpleclans_civilian_kills} | {simpleclans_size} |
{simpleclans_deaths} | {simpleclans_total_civilian} |
{simpleclans_kdr} | {simpleclans_total_deaths} |
{simpleclans_neutral_kills} | {simpleclans_total_kdr} |
{simpleclans_rival_kills} | {simpleclans_total_neutral} |
{simpleclans_weighted_kills} | {simpleclans_total_rival} |
{simpleclans_is_leader} | {simpleclans_friendly_fire} |
{simpleclans_allow_deposit} | {simpleclans_allow_withdraw} |
{simpleclans_is_unrivable} | {simpleclans_leader_size} |