跳到正文

VoteListener

作者:DrexHD

A vote listener for fabric using NuVotifier-Fabric

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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 reload command

常见问题

VoteListener 支持哪些 Minecraft 版本?

VoteListener 支持 Minecraft Java 版 1.20–26.3,共 24 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

VoteListener 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

DrexHD 的其他作品

查看全部 →