BBLottery
BBLottery 是一个彩票模组——仅此而已,别无其他。
它支持多张彩票、提供彩票统计数据、配置抽奖间隔时间、初始奖池、票号范围、票价与税率,以及每轮可购买的票数限制。
配置说明
intervall:两次抽奖之间的间隔时间(分钟)
pot:初始头奖金额,每次有人中奖后,奖池将重置为此金额
range:票号范围。该数值越高,彩票被抽中的概率越低(每张彩票的中奖几率为 1/range)
maxTickets:每位玩家每轮最多可购买的票数
ticketPrice:单张彩票的价格
tax:彩票税率,并非全部票价都会加入奖池
如果将 range 设置为 -1,票号将按顺序发放,即第一位购买者获得 #1,第二位获得 #2,依此类推;中奖票将从已购买的票中抽取。
命令
- /lottery - 显示帮助信息
- /lottery buy [ticketnumber] - 购买指定号码的彩票;若未提供号码,则随机购买一张
- /lottery give <player> [ticketnumber] - 类似于 /lottery buy,但为其他玩家购买彩票(目标玩家必须在线)
- /lottery info - 查看当前奖池金额、玩家已购买的彩票数量,以及如果持有某张彩票中奖可获得多少奖金
- /lottery stats - 显示彩票相关统计信息
部分管理员命令:
- /lottery reload - 重新加载配置文件
- /lottery draw [-f] - 强制立即进行抽奖并开启下一轮;若加上 -f 参数,还会重新加载 lottery.yml 文件
权限节点
- bblottery.buy - 允许购买彩票
- bblottery.buy.multi - 允许购买多达 <maxTickets> 张彩票
- bblottery.buy.other - 允许为他人购买彩票
- bblottery.draw - 允许强制开启下一轮抽奖
- bblottery.reload - 允许重新加载配置文件
本地化文件
待办事项
修复重置票号的 Bug
- 在特定时间自动开奖
- 欢迎提出建议!
需要安装 Vault 及一个经济类插件
如果你想感谢我,可以通过 PayPal 小额捐赠:
它无法正常工作!!!
如果你在使用 BBLottery 时遇到任何问题,请尽可能提供详细信息,以便我能尽力帮助你。
出现了错误?请查看服务器日志,查找错误消息或堆栈跟踪信息。同时提供你所使用的插件版本和 Bukkit 版本也会很有帮助。如果没有错误消息?请告诉我你当时正在做什么或输入了什么命令。
如果我不知道发生了什么事,我就无法修复它。
BBLottery
BBLottery is a lottery - nothing more, nothing less.
It features multiple tickets for the lottery, some stats about the lottery, configuration of the intervall a ticketnumber is drawn, the initial pot, the ticketrange,price and tax and how many tickets may be bought.
Configuration
intervall: The time between drawings in minutes
pot: The inital jackpot, every time someone wins, it gets reset to this amount
range: The ticket-range, the higher this number, the less likey it is that the lottery is won (each ticket has a chance of 1/range to win)
maxTickets: How many tickets a player may buy per round
ticketPrice: How much a ticket costs
tax: Tax on the tickets, so not the full price gets added to the jackpot
If you set the range to -1, the tickets will be given out in order, so first one to buy a ticket gets #1, second #2 and so on, and the winnig ticket will be taken from the bought tickets
Commands
- /lottery - Shows the help
- /lottery buy [ticketnumber] - buys a ticket with the given number, if no number is given, buys a random Ticket
- /lottery give <player> [ticketnumber] - like /lottery buy, but buys ticket for another player (target has to be online)
- /lottery info- current jackpot, tickets the player has bought and how much money a player would get if he won with a ticket
- /lottery stats - shows some stats about the lottery
Some admin-comands:
- /lottery reload - reloads the config
- /lottery draw [-f]- forces the lottery to draw a ticketnumber and start the next round, if -f is set it also reloads the lottery.yml
Permissions
- bblottery.buy - You can buy a ticket
- bblottery.buy.multi - You can buy up to <maxTickets> tickets
- bblottery.buy.other - You can buy a ticket for someone else
- bblottery.draw - You can force the next round
- bblottery.reload - You can reload the config
Localizations
TODO
Fix Resetting Tickets-bug
- Draw at specific time
- Suggestions!
Requires Vault and an economy-plugin
If you want to thank me, a little donation on Paypal is appreciated:
It does not work!!!11
If you encounter any problems with BBLottery give me as much info as you have, so that I can help you to the best I can.
You got an error? go to the Server-Log and look for the error-message/stacktrace. Version of the plugin and Bukkit you are using would also be nice. Got no error-message? Then tell me what you were doing/typing.
If I don't know what happend I can't fix it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧