SimpleVoteListener
SVL 需要 Java 7
描述
SimpleVoteListener 被设计为尽可能轻量,并具备无限的可能性。SimpleVoteListener 可以执行命令、广播消息,并完成你所需的一切功能。
计划中的功能
- Vault 经济支持。
- Bungeefier 和 Spigot 支持。
- 公共广播。
- 向投票玩家发送私信。
- 离线投票。
- 未知玩家拦截。(除非玩家之前已加入服务器,否则投票将不会生效)
- 可配置
- 可以在投票时赋予或移除权限。
- 可以向玩家发放物品。
- 可以在投票时通过控制台运行命令。
- 特定服务的奖励。
- 特定权限的奖励。
- 投票计数。
- 投票次数奖励。
- 定时命令。
- 定时命令在服务器重启后继续执行。
- 配置变量。
- 配置文件中的颜色代码。
安装
需要 Votifier
- 将 SimpleVoteListener.jar 放入你的 plugins 目录。
- 重载或重启你的服务器。
- 完成!
注意:你不需要进行任何特殊操作即可让 SimpleVoteListener 连接到 Votifier
计划中的命令
/svl reload - 重载配置文件。
/svl test - 测试投票流程。
/svl debug - 切换开发用的调试模式。
用法
示例用法:
# 更改版本会破坏你的配置文件。 version: 1.0调试: false 金库: true 时间格式: 'HH:mm:ss'
public-broadcast: '&e%player%从 %service% 投票!' private-message: '&a谢谢,&c%player%&a,感谢你的投票!'
player-awards: money: 100 permissions: - 'example.permission' - 'example.permission.two' items: - 'ITEM{DATA_VALUE}:AMOUNT' - 'WOOL{6}:64' commands: - 'warp%player%vote' # 请注意,特定奖项不包含上述通用奖项。 specific: # 授予通过特定投票服务进行投票的玩家。 service: PlanetMinecraft: money: 100 permissions: - 'example.permission' items: - 'DIAMOND:1' commands: - 'warp%name%pmc'
# 授予具有特定权限的玩家奖励。 # 在权限中用连字符替换点号。 permissions: example-permission: money: 100 permissions: - 'example.permission' items: - 'GOLD_BAR:1' commands: - 'warp%name%china' # 授予投票达到特定次数的玩家奖励。 votes: 100: money: 100 permissions: - 'example.permission' items: - 'DIAMOND:10' commands: - 'say%name%hasvoted%votes%times!'
- %name% - 玩家的用户名,而非昵称。
- %ip% - 投票玩家的 IP 地址
- %time% - 时间格式不确定,Votifier 负责处理该格式。
- %service% - 用于投票的服务,例如“PlanetMinecraft.com”
- %votes% - 玩家投票的次数。
- %connection% - 相应地返回“online”或“offline”。
故障排除
投票时无任何反应
- 请检查 Votifier 配置中使用的端口是否已被占用。
- 阅读 Votifier 页面上的故障排除部分。
插件未生成文件
- 确保你的 plugins 文件夹未被限制访问权限。如果其他插件可以向其中写入文件,通常不会出现这种情况。
- 尝试使用 Java 7 而不是 Java 6。
- 确保你使用的是与 SVL 版本相对应的正确 CraftBukkit 版本。
配置文件无法正常工作
- 通过粘贴来解析你的配置文件。如果有错误,它会告诉你出错的行和列号!
- 确保你使用了正确的变量(如上所列)
命令未被执行
- 请确认你有一个可以运行你所尝试执行的命令的插件!
- 某些插件不允许从控制台运行特定命令,除了寻找其他插件外别无他法!
连接到 Votifier 但未连接到 SVL
- 确保 SVL 启动时没有错误,并通过输入
/pl确认其已启用(列表中应显示为绿色)。 - 通过检查配置页面的高级设置部分来验证配置是否有效
仍然无法工作?/问题未解答?
请在评论中留下以下信息:
- SVL 版本
- Votifier 版本
- CraftBukkit 版本
- 控制台中出现的错误(如有提供)
- 将配置文件发布在 pastie.org 或 pastebin.com 上
- 实际出现的问题,并尽可能详细地说明
SimpleVoteListener
SVL requires Java 7
Description
SimpleVoteListener was designed to be as lightweight as possible and make endless possibilities. SimpleVoteListener can perform commands, broadcast messages, and do everything you could possibly need it to do.
PLANNED Features
- Vault Economy support.
- Bungeefier and Spigot support.
- Public broadcasts.
- Private messaging to voting players.
- Offline voting.
- Unknown player blocking. (Vote will not go through unless player has joined server previously)
- Configurable
- Permissions can be given and taken upon vote.
- Items can be given to player.
- Commands can be run through console upon voting.
- Service-specific awards.
- Permission-specific awards.
- Vote counting.
- Vote count awards.
- Timed commands.
- Timed commands continue after restarting server.
- Config variables.
- Color codes in config.
Installation
Requires Votifier
- Drop SimpleVoteListener.jar into your plugins directory.
- Reload or restart your server.
- Done!
note: You don't need to do anything special to get SimpleVoteListener to connect to Votifier
Planned Commands
/svl reload - Reloads configuration.
/svl test - Tests vote process.
/svl debug - Toggles debug mode for development.
Usage
Sample usage:
# Changing the version will ruin your config. version: 1.0debug: false vault: true time-format: 'HH:mm:ss'
public-broadcast: '&e%player%votedfrom%service%!' private-message: '&aThanks,&c%player%&a,forvoting!'
player-awards: money: 100 permissions: - 'example.permission' - 'example.permission.two' items: - 'ITEM{DATA_VALUE}:AMOUNT' - 'WOOL{6}:64' commands: - 'warp%player%vote' # Note that specific awards do not include the awards above. specific: # Awards given to players that vote from a specific voting service. service: PlanetMinecraft: money: 100 permissions: - 'example.permission' items: - 'DIAMOND:1' commands: - 'warp%name%pmc' # Awards given to players that have a specific permission. # Replace dots with dashes in permissions. permissions: example-permission: money: 100 permissions: - 'example.permission' items: - 'GOLD_BAR:1' commands: - 'warp%name%china' # Awards given to players that have voted a specific amount of times. votes: 100: money: 100 permissions: - 'example.permission' items: - 'DIAMOND:10' commands: - 'say%name%hasvoted%votes%times!'
- %name% - Username of the player. Not the nickname.
- %ip% - IP Address of the player who voted
- %time% - Not sure what format of time, Votifier handles the format.
- %service% - Service used when voting, eg. "PlanetMinecraft.com"
- %votes% - Amount of times player has voted.
- %connection% - Returns "online" or "offline" accordingly.
Troubleshooting
Nothing is Happening on Vote
- Check to make sure the port you are using in your Votifier config is not already in use.
- Read the Troubleshooting section on the Votifier page.
Plugin not generating files
- Make sure your plugins folder isn't restricted. Usually this is not the case if other plugins can write files to it.
- Try using Java 7 instead of Java 6.
- Check that you're using the correct version of CraftBukkit corresponding to the version of SVL.
Config not working
- Parse your config by pasting it. If there is an error it will tell you the line and column number!
- Make sure you are using correct variables (listed above)
Commands not being run
- Check to make sure you have a plugin that can run the commands you are trying to run!
- Some plugins don't let certain commands run from the console, and there is nothing that can be done except look for a different plugin!
Connecting to Votifier but not SVL
- Make sure SVL started up without errors and is enabled by typing
/pl(it should be green in the list). - Make sure config works by checking advanced setups section of Configuration Page
Still not working?/Question not answered?
Leave a comment with the following:
- SVL version
- Votifier version
- CraftBukkit version
- Errors in console (if one is given)
- Config file posted on either pastie.org or pastebin.com
- Actual problem typed and explained to best of detail
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
下载 Simple Vote Listener
v2.6
- 更新为 Bukkit 1.5.1 R0.1(Beta Build)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧