NameMC Hook 是一款 Minecraft 插件,它允许服务器管理员为在 NameMC.com 上为服务器投票的玩家提供奖励,从而激励社区参与并提升服务器知名度。
PlayerVoteEvent 事件,便于集成其他功能。/vote- 功能:向玩家显示服务器的投票链接。- 权限:`hook.command.vote`/checkvote <玩家名>- 功能:检查指定玩家是否已为服务器投票。- 权限:`hook.command.checkvote`hook.command.vote:允许使用 /vote 指令。hook.command.checkvote:允许使用 /checkvote 指令。配置文件允许你自定义服务器信息、奖励命令和各类消息。以下是一个配置示例:
# 你的服务器IP,用于生成投票链接
ip: your.server
# 玩家投票后执行的命令列表
perform-commands:
- 'say Change the commands executed in the NameMCHook Config!'
# 各类提示消息
messages:
no-permission: '&cNo permission.'
player-voted: '&a%player% &ehas voted.'
player-didnt-vote: '&c%player% has not voted.'
you-voted: '&aThank you for voting for us on NameMC!'
vote-message: '&eYou can vote for us at https://namemc.com/server/<your server ip>'
player-voted-broadcast: '&6%player% &ehas voted for the server on NameMC!'vote-message 和 perform-commands 中,请将 <your server ip> 或示例命令替换为你服务器的实际信息。插件提供了 HookAPI,开发者可以通过 HookAPI.<method> 的方式访问其方法,并监听 PlayerVoteEvent 事件来开发扩展功能。
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人次:3,101,941 | 今日访问人次:10,105 | 昨日访问人次:22,124
独立 IP:19,225 | 最近24小时独立访客:19,230
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6