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 链接
GitHub Voteranks 项目
目标系统
附魔列表
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
GitHub Voteranks Project
Goals
List of Enchantments
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧