VoteListener
设置
本模组由 NuVotifer-Fabric 驱动。请确保首先按照他们的 设置指南 配置 NuVotifier。
配置
配置文件位于 ./config/votelistener.json。
{
// 命令中使用的特殊字符需要进行转义。请使用类似
// https://www.freeformatter.com/json-escape.html 的网站来转义你的命令
// 命令包含特殊的占位符:
// ${uuid} - 投票玩家的 UUID
// ${username} - 投票玩家的名字
// ${serviceName} - 投票网站名称
// ${address} - 投票者的 IP 地址
// ${timeStamp} - 投票的时间戳
// 收到投票时执行的一系列命令
"commands": [
"tellraw @a [{\"text\":\"${username}\",\"color\":\"blue\"},{\"text\":\" voted on \",\"color\":\"aqua\"},{\"text\":\"${serviceName}\",\"color\":\"blue\"}]"
],
// 当投票玩家在线或加入服务器时执行的一系列命令
// 这些命令将以玩家的身份执行,如同他们拥有 OP(管理员)权限一样
// 你可以使用 @s 来定位该玩家(在支持实体选择器的命令中)
"onlineCommands": [
"give @s diamond 1"
],
// 投票计数里程碑与命令的映射
// 这些命令的工作方式类似于 onlineCommands,但每个里程碑仅执行一次
"milestones": {
// 获得 5 票后,玩家会收到 5 个苹果
"5": [
"give @s apple 5"
],
"10": [
"give @s golden_apple 2"
]
}
}
占位符
votelistener:vote_count- 玩家累积的票数
权限
你需要是操作员(OP)或拥有以下权限
votelistener.reload- 访问/votelistener reload命令
VoteListener
Setup
This mod is powered by NuVotifer-Fabric. Make sure to setup NuVotifier first, by following their Setup Guide.
Config
The config file is located in ./config/votelistener.json.
{
// Special characters used in commands need to be escaped. Use a website like
// https://www.freeformatter.com/json-escape.html to escape your commands
// Commands have special placeholders:
// ${uuid} - Vote player UUID
// ${username} - Vote player name
// ${serviceName} - Voting website name
// ${address} - IP address of the voter
// ${timeStamp} - Timestamp of the vote
// A list of commands that get executed when the vote is received
"commands": [
"tellraw @a [{\"text\":\"${username}\",\"color\":\"blue\"},{\"text\":\" voted on \",\"color\":\"aqua\"},{\"text\":\"${serviceName}\",\"color\":\"blue\"}]"
],
// A list of commands that gets executed when the player that voted is online or when they join
// The commands will be executed by the player, as if they were OP
// You can use @s to target the player (in commands that support entity selectors)
"onlineCommands": [
"give @s diamond 1"
],
// A map of vote count milestones to commands
// The commands work like onlineCommands, but are only executed once for each milestone
"milestones": {
// After 5 votes the player receives 5 apples
"5": [
"give @s apple 5"
],
"10": [
"give @s golden_apple 2"
]
}
}
Placeholders
votelistener:vote_count- The number of votes a player has accumulated
Permissions
You need to be an operator or have these permissions
votelistener.reload- Access to/votelistener reloadcommand
下载 VoteListener
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteListener
新增
- 支持 ISO-8601 时间戳
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧