- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
ChatControl Pro/WIKI/变量
子页面
变量可以用于表示实际的数据. 如: {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} |