Vote-Rank
关于
为达到特定投票数量的玩家赠送礼物,例如物品、书籍、聊天奖励,或直接对他们使用命令!
安装方法
只需下载 VoteRank.jar,将其放入服务器的插件文件夹中,然后重启/重载服务器。 该插件会在你的 plugins 文件夹中创建一个名为 "VoteRank" 的新文件夹。在 VoteRank 文件夹中,你可以找到 config.yml 和 VoteRank.db。
- 在不修改 config.yml 的情况下,插件默认使用 sqlite 数据库
- 你也可以选择使用 mySql 数据库
- 所有消息均可自定义!
- 完全支持颜色代码!(&1 - &9 - &a - &r) / [COLORNAME]
- 在标签页 (Tab) 或客户端右侧显示用户的投票数!
- ==== 仅使用侧边栏或标签页之一,因为它们可能会互相冲突 ====
- 查看 图片
版本 1.0 及以上功能
- 支持 RGB 颜色代码的彩色皮革盔甲
- 彩色命名物品
- 超强力附魔
命令
- /setvotes <player> 在 mySql / sqlite 数据库中设置玩家的投票数量
- /votes <player> 查看 <player> 的投票统计
- /votes 查看你自己的投票统计
- /votelist 查看前十大投票者(如果投票者超过10人)
- /clearvotes 清除你的数据库
- /clearaccept 确认清除数据库
- /cleardeny 拒绝清除数据库
- /vote 显示投票网站列表
- /voteversion 显示 VoteRanks 的版本号
- /addvote <player> (可选参数 <amount>)
- /savebook 将你手持的书保存到文件中
权限
- "VoteRank.setvotes" 赋予玩家使用 /setvotes 命令的权限
- "VoteRank.clearvotes" 赋予你使用 /clearvotes 命令的权限
- "Voterank.addvote" 赋予你使用 /addvotes 命令的权限
- "VoteRank.savebook" 赋予你保存书为 .txt 文件的权限
- "VoteRanks.except.id" 此权限用于排除某玩家获得目标奖励,id 需在你的目标配置中设置
GitHub 链接
目标系统
VoteRank 的目标系统:
你可以在 config.yml 中添加新目标,也可以修改基本目标!
示例:
- 'votes=1;Message=Your first vote!;broadcast=<player> has 1 vote;Give=264:0,1,null,-1,null,-1,-1,-1'
这会在你第一次投票时给予一个钻石,没有自定义名称,也没有任何附魔。
- votes>100;Message=Nice damn, <votes> votes!!;Give=266:0,1,null,-1,&6Vote-Bar,-1,-1,-1
如果你获得超过 100 票,这将给予你一个金锭,名称为金色显示的 "Vote-Bar"。同时会广播通知玩家。 -1 表示禁用该项目的此功能,null 表示无附魔或名称
- votes=100;Message=You got 100 Votes! Here is something special:)!;Give=300:0,1,PROTECTION_EXPLOSIONS,1337,&6Marius-Suit,50,0,0
这将给予玩家一条皮革护腿,颜色通过 RGB 颜色系统设置为 (50,0,0),名称为金色显示的 "Marius-Suit",并拥有 爆炸保护等级 1337。同时会广播通知玩家。
解释:
- votes=1 设置你需要获得的票数才能达成此目标
- votes<10 每当投票总数小于 10 时触发
- votes>10 每当投票总数大于 10 时触发
- votes%10 每当投票总数能被 10 整除时触发
- Message=<Message> 是发给玩家的个人消息(如果他在线)
- broadcast=<Message> 是发送给所有用户的全球广播消息
- Give=id,amount' 是设置物品奖励的选项 === 仅限版本 0.1 - 0.9 ===
- Give=id:subid,amount,Enchantment,lvl of entchantment,Name,red,green,blue === 仅限版本 1.0 及以上 ===
- Give=listname 给予玩家列表中的一个随机物品
- command=<command> 可以以控制台身份执行命令
- book=[file]plugins\VoteRanks\Books\book0.txt; 将 book0.txt 转换为书本并给予玩家
- - book.txt 示例 -
- book=author:Server-Team,title:The book,description:a book, fairly square!,&4Site1[newline]&4Site1,line2[newpage]Site2
- id=id 设置目标的 ID,仅用于排除某些玩家从某个目标中获得奖励
- 不需要特定的顺序,但 votes 必须是目标配置的第一部分
config.yml 配置文件
0.9 及以下版本
1.0 及以上版本
Vote-Rank
About
Give your players presents for specific amount of votes,like items,books,rewards at the Chat or simply use a command on them!
How to install
Simply download the VoteRank.jar, put the Jar in your Server's Plugin Folder and restart / reload it. The plugin creates a new folder in your pugins folder named "VoteRank". In the VoteRank folder you can find the config.yml and the VoteRank.db.
- Without any chanches in the config.yml the plugin uses a sqlite-database
- You can choose a mySql database if you want to
- All messages can be changed!
- Full Color Support! (&1 - &9 - &a - &r) / [COLORNAME]
- Show your Users Votes on Tab or on the right sit of their Clients!
- ==== Only use one Sidebar or tab because they can block each other====
- Look at the Images
Version 1.0 to above
- Colored leather armor with RGB color-code
- Colored Named items
- Overpowered entchantments
Commands
- /setvotes <player> set the amount of votes in the mySql / sqlite database
- /votes <player> Shows you <player>'s Vote stats
- /votes Shows you your Vote stats
- /votelist Shows you the top ten of voters (if there a 10 or more voters)
- /clearvotes to clear your database
- /clearaccept to accept clearing your database
- /cleardeny to deny clearing your database
- /vote to show you votesites
- /voteversion Displays you the Version of VoteRanks
- /addvote <player> (optionally <amount>)
- /savebook Saves a book you are holding to a file
Permissions
- "VoteRank.setvotes" gives the Player the permission to use the /setvotes Command
- "VoteRank.clearvotes" gives you access to the /clearvotes Command
- "Voterank.addvote gives you acces to the /addvotes Command"
- "VoteRank.savebook" gives you acces to save a book as .txt
- "VoteRanks.except.id", this except a player from getting the Goal, id has to be set in your goal
GitHub link
Goals
VoteRank's Goal - System:
You can add new Goals in the config.yml, also you can change the basic goals!
Examples:
- 'votes=1;Message=Your first vote!;broadcast=<player> has 1 vote;Give=264:0,1,null,-1,null,-1,-1,-1'
This gives you for your first vote an diamont, without any Custom Name,or anyEntchantment.
- votes>100;Message=Nice damn, <votes> votes!!;Give=266:0,1,null,-1,&6Vote-Bar,-1,-1,-1
This gives you a Gold-Bar with the gold-colored name "Vote-Bar" if you got over 100 votes.It will also announce the player. -1 will disable the function for this item,null means no Entchantment or name
- votes=100;Message=You got 100 Votes! Here is something special:)!;Give=300:0,1,PROTECTION_EXPLOSIONS,1337,&6Marius-Suit,50,0,0
This gives the player leather pants colored in RGB color-system(50,0,0), with the gold-colored name "Marius-Suit" and Explosion-Protection Level 1337.It will also announce the player.
Explanation:
- votes=1 this sets the amount of Votes you need to get this Goal
- votes<10 everytime the amount of votes are less than 10
- votes>10 everytime the amount of vote are greater than 10
- votes%10 everytime the amount of votes can be divided by 10
- Message=<Message> is a private Message to the Player(if he is online)
- broadcast=<Message> is a Global Message to all Users
- Give=id,amount' is the option the set up an Item reward === only from Version 0.1 - 0.9 ===
- Give=id:subid,amount,Enchantment,lvl of entchantment,Name,red,green,blue === only from Version 1.0 to above ===
- Give=listname, gives the player a random item from a list
- command=<command> this can execute an command as the Console
- book=[file]plugins\VoteRanks\Books\book0.txt; convert the book0.txt to a book and give it to the player
- - Bsp. of a book.txt -
- book=author:Server-Team,title:The book,description:a book, fairly square!,&4Site1[newline]&4Site1,line2[newpage]Site2
- id=id, sets the id of the goal, only used to except players from a goal
- There is no need for any Order, but votes have to be the first Part of the Goal
The config.yml
0.9 and below
1.0 an above
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
下载 Vote-Rank
Voterank 1.3.5
修复了当玩家未获得奖励就离开服务器时,奖励线程因空指针异常而崩溃的问题
Voterank 1.3.4
- 随机物品功能现在支持多个列表,只需使用 give=<列表名称> 来指定列表即可。为了兼容旧版配置,give=randomitem 等同于 give=randomitemlist,但必须在配置文件中定义该列表!
- 如果列表不存在,则显示错误信息
Voterank 1.3.3
- 添加了随机物品列表,用于从列表中向玩家发放物品(在目标设置中设置 give=randomitem)
- 支持取模运算符(例如 votes%5)
- 新增排除目标的权限:在目标设置中设置 id=x,并将权限 "voteranks.except.x" 授予相应玩家或用户组,其中 x 为需在目标设置中设置的 ID
- 基于 Minecraft 1.10.2 版本编译
Voterank 1.3.2
修复了离线玩家导致的空指针异常
Voterank 1.3.1
- 修复了一个旧的 SQL 命令
- 将 /setvotes 的 SQL 命令修改为忽略大小写拼写错误
- 修复了 /addvote 命令错误的 SQL 指令
- 添加了无权限提示信息
- 添加了启用或禁用无权限提示信息的设置选项
- 添加了玩家未找到的提示信息
Voterank 1.3
- 修复了在未安装 Vault 时权限解析器中的 bug
- 修复了 addvote 命令中一个旧的 SQL 命令
- 排行榜前十名单改用玩家名称而非 UUID 来避免重复
- 将玩家奖励处理移至独立线程,以防止在主线程中产生微卡顿(默认计时器为 20 tick -> 1秒)
- 改为预先加载并处理目标设置,而不是在有人投票时才进行处理
Voterank 1.2
- 支持 UUID
- 进行了一项小改动,旨在防止 SQLite 数据库中因大小写拼写错误导致用户重复
- 添加了首次加入书籍
- 为 Spigot 1.8 编译
- 应在数据库中添加 UUID 列
- 对新条目忽略大小写,应能防止新的重复条目
Voterank 1.1
- 添加了新命令:/savebook,用于将书籍转换为 .txt 文件
- 修复了当从未登录过服务器的用户进行投票时可能出现的错误消息
- 修复了 /addvote 命令的错误权限,现应为:'voterank.addvote'
- 添加了新标签 book,可从文件或直接读取
- 使用 BukkitRunnable 替代 Thread
Voterank 1.0
- 向你的奖励中添加了不安全的附魔和名称。
- 你需要更改你的 give 标签,旧系统不再支持。
- 添加了 /addvote <玩家> (<数量>可选),此命令将像投票网站一样添加票数,并向用户发放奖励
Voterank 0.9
- 添加了 /voteversion 命令,用于查看你的 VoteRanks 版本
- 修复了一个可能导致 /vote 命令链接损坏的 bug
- - 链接着色现在仅支持 [COLORNAME] 格式
- 添加了玩家列表,可显示你用户的投票情况
Voterank 0.8
终于找到了“未知列”错误,感谢 skippyaut ;D
- 添加了 /vote 命令,方便用户快速访问你的投票网站
- 修复了一些 bug
- 添加了自动数据库重置功能(目前仅在每天重启一次或多次服务器时有效)
- 添加了针对 votes>10 和 votes<10 的目标设置
Voterank 0.7
修复了一个导致错误且无法向名字过长的用户显示侧边栏的 bug
Voterank 0.6
添加了 Minecraft 侧边栏,以显示你或其他玩家的投票数
- === 侧边栏仅支持最多 18 个字符!!! ===
- 如果使用超过 18 个字符的字符串,客户端将会报错并被踢出服务器
改进了侧边栏的关闭方式
添加了禁用侧边栏或聊天消息的设置
重写了 SQLite 和 MySQL 数据库,SQLite 现在应该可以正常工作
Voterank 0.5
添加了 Minecraft 侧边栏,以显示排名靠前的投票者
- === 侧边栏标题仅支持最多 32 个字符!!! ===
- 显示的结果可能与聊天投票列表版本不同,这是由 Minecraft 本身造成的,但仅在玩家票数相同时出现!
Voterank 0.4
- 添加了 /cleardeny 和 /clearaccept 命令,以确保彻底删除数据库
- 添加了 Vault 权限支持和 Minecraft 原生权限支持
Voterank 0.3
添加了 /clearvotes 命令,用于清空数据库
Voterank 0.2
修复了导致数据库保存错误和数据错误的 bug
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧