将 nuvotifier.jar
文件复制到您 Minecraft 服务器的 plugins
文件夹。
plugins/nuvotifier.jar
重启您的 Minecraft 服务器,以便 NuVotifier 自动生成其配置。
首次启动后,NuVotifier 会自动创建配置文件 plugins/Votifier/config.yml
。
# NuVotifier 配置
host: 0.0.0.0
port: 8192
# 安全
debug: false
quiet: false
# 投票网站的 Token
tokens:
# 在此配置您的 Top-Games token
default: "由 NuVotifier 自动生成的 token"
NuVotifier 自动生成一个 token,您需要从服务器配置文件中获取它。
plugins/Votifier/config.yml
转到您的 Top-Games 面板,您服务器的"Votifier"部分。
8192
(或您的自定义端口)使用您的 Top-Games 面板中的"测试"按钮验证通信是否正常工作。
要自动奖励您的玩家,您需要安装一个监听 NuVotifier 事件的奖励插件。
# VotingPlugin 配置
Rewards:
Vote:
Commands:
- "eco give %player% 100"
- "give %player% diamond 1"
- "broadcast &a%player% &7为服务器投票了!"
Messages:
- "&a谢谢您的投票!"
- "&7您获得了 $100 和 1 颗钻石"
Milestone:
"10":
Commands:
- "give %player% diamond_block 1"
Messages:
- "&6恭喜!达到 10 票!"
要使用 VotingPlugin 的投票 GUI 并显示 Top-Games,请配置 VoteSites.yml 文件:
# Top-Games 的 VoteSite 配置
# 文件:plugins/VotingPlugin/VoteSites.yml
TopGames:
Enabled: true
Name: "Top-Games"
ServiceSite: "TopGames"
VoteURL: "https://cn.top-games.net/minecraft/vote/您的服务器"
VoteDelay: 24 # 投票间隔(小时)
VoteDelayDaily: true # 每日重置投票延迟
DisplayItem:
Material: "EMERALD"
Amount: 1
Name: "&aTop-Games"
Lore:
- "&7在 Top-Games 投票!"
- "&e$150 + 2 颗钻石"
Rewards:
Commands:
- "eco give %player% 150"
- "give %player% diamond 2"
- "broadcast &a%player% &7为服务器投票了!"
Messages:
Player:
- "&a谢谢您的投票!"
- "&7您获得了 $150 和 2 颗钻石!"
telnet 您的IP 8192
测试plugins/Votifier/
中的 NuVotifier 日志