? UltraLotería 1.5.1
适用于 Minecraft 服务器的可配置彩票系统,默认使用西班牙语,并可选支持英语、葡萄牙语和俄语翻译。
玩家使用服务器货币购买彩票。每笔销售额的一部分将进入不断增长的奖池,系统将自动抽取一张中奖彩票。抽奖结束后,新的一轮将自动开始。
✨ 功能特性
- 奖金累积: 奖池金额取决于售票情况。您可以配置每张票售价中有多少比例进入奖池。
- 自动开奖: 设置开奖间隔时间。如果某轮没有售出彩票,开奖将被推迟。
- 可编辑的库存菜单: 通过 YAML 文件自定义菜单标题、文本、颜色、材质、按钮位置以及购买数量。
- Vault 经济集成: 门票支付和奖品发放均通过兼容 Vault 的经济插件进行。
- 赢家税: 设置从奖池中扣除的百分比。可以将其移出流通,或分配给特定玩家的 UUID 作为可领取余额。
- 公告通知: 在开奖前通知玩家,并公布中奖者信息。
- 玩家信息: 查看彩票、中奖概率、个人统计数据以及最近的开奖历史。
- 可领取的奖品: 离线状态下的中奖玩家可以稍后领取奖品。
- 四种内置语言: 默认使用西班牙语;同时包含英语、葡萄牙语和俄语。服务器管理员可允许玩家自行选择语言。
- 管理工具: 暂停或恢复彩票活动、触发开奖、重新加载设置以及检查待处理的经济操作。
⚙️ 默认设置
随附的配置是一个可编辑的示例,而非固定的奖金数额:
| 设置项 |
默认值 |
| 门票价格 |
200 经济单位 |
| 每轮每位玩家的票数 |
3 张 |
| 开奖间隔时间 |
7 天 |
| 加入奖池的门票收入比例 |
90% |
| 从奖池中扣除的税费比例 |
5% |
| 起始奖池金额 |
0 |
例如,如果有 100 名玩家每人购买三张票,总售票额为 60,000 经济单位。奖池金额为 54,000,中奖者在缴税后获得 51,300。**并不存在固定的 51,300 奖金或 100 名玩家的上限:**实际金额完全取决于参与人数。
? 指令
/lottery、/loteria 或 /lotto — 打开彩票菜单。
/sorteo — 默认启用的额外菜单指令;其名称可在配置文件中更改。
/lottery buy <amount> — 购买彩票。
/lottery tickets — 查看您的彩票。
/lottery info — 查看奖池金额和下次开奖时间。
/lottery odds — 查看您的中奖几率。
/lottery stats — 查看您的统计数据。
/lottery history [page] — 查看最近的开奖记录。
/lottery claim — 领取待处理的奖品。
/lottery lang <en|es|pt|ru> — 当服务器管理员启用玩家自选语言时,用于选择语言。
/lottery admin — 查看管理指令列表。
管理员权限: ultralottery.admin
在此版本中,玩家指令不需要单独的 lottery.use 权限。
? 依赖与安装
必需: Vault 以及一个兼容 Vault 的经济插件。
- 安装 Vault 和你的经济插件。
- 将
UltraLoteria-1.5.1.jar 放入服务器的 plugins 文件夹。
- 启动服务器。
- 根据需要编辑
plugins/UltraLottery/config.yml、lang/es.yml 和 menus/es.yml。
- 编辑文件后运行
/lottery admin reload。如果更改了额外菜单指令的名称,请重启服务器。
插件内部名称仍为 UltraLottery,以便现有安装继续使用相同的数据文件夹。更新时,请先停止服务器,备份 plugins/UltraLottery/data.yml,删除旧版 JAR 文件,然后安装新版。
?️ 兼容性
基于 Paper API 1.20.4 构建,使用 Java 17 字节码。插件声明的 api-version: 1.20。请查看各个发布版本中标注的 Minecraft 版本和加载器标签,以确认与此 JAR 文件测试过的版本。
? 许可与作者
MIT 许可证 — 您可以根据许可证条款使用、修改和重新分发此插件。
由 jorge123987 创建。
☕ 支持开发
如果您希望支持未来的更新和测试:
? UltraLotería 1.5.1
A configurable lottery for Minecraft servers, with Spanish defaults and optional English, Portuguese, and Russian translations.
Players buy tickets with their server currency. A portion of every sale enters a growing jackpot, and an automatic draw selects one winning ticket. After the draw, a new round begins automatically.
✨ Features
- Growing jackpot: The prize depends on ticket sales. Configure how much of each ticket price enters the pot.
- Automatic draws: Set the time between draws. If a round has no tickets, the draw is postponed.
- Editable inventory menu: Customize its title, text, colors, materials, button positions, and purchase amounts in YAML.
- Vault economy integration: Tickets are paid for and prizes are awarded through a Vault-compatible economy provider.
- Winner tax: Set a percentage of the jackpot to deduct. Remove it from circulation or assign it to a player's UUID as a claimable balance.
- Announcements: Notify players before a draw and announce the winner.
- Player information: View tickets, winning odds, personal statistics, and recent draw history.
- Claimable prizes: Winners who are offline can collect their prize later.
- Four included languages: Spanish is the default; English, Portuguese, and Russian are also included. Server owners can allow players to choose their own language.
- Administration tools: Pause or resume the lottery, trigger a draw, reload settings, and inspect pending economy operations.
⚙️ Default settings
The included configuration is an editable example, not a fixed prize:
| Setting |
Default |
| Ticket price |
200 economy units |
| Tickets per player per round |
3 |
| Time between draws |
7 days |
| Ticket revenue added to the jackpot |
90% |
| Tax deducted from the jackpot |
5% |
| Starting jackpot |
0 |
For example, if 100 players buy three tickets each, ticket sales total 60,000 economy units. The jackpot is 54,000, and the winner receives 51,300 after tax. There is no fixed 51,300 prize or 100-player limit: the actual amount depends on participation.
? Commands
/lottery, /loteria, or /lotto — Open the lottery menu.
/sorteo — Extra menu command enabled by default; its name can be changed in the configuration.
/lottery buy <amount> — Buy tickets.
/lottery tickets — Check your tickets.
/lottery info — Check the jackpot and next draw.
/lottery odds — Check your chances of winning.
/lottery stats — View your statistics.
/lottery history [page] — View recent winning draws.
/lottery claim — Collect a pending prize.
/lottery lang <en|es|pt|ru> — Choose a language when the server owner enables player language selection.
/lottery admin — View administration commands.
Administrator permission: ultralottery.admin
Player commands do not require a separate lottery.use permission in this version.
? Requirements and installation
Required: Vault and a Vault-compatible economy provider.
- Install Vault and your economy plugin.
- Place
UltraLoteria-1.5.1.jar in the server's plugins folder.
- Start the server.
- Edit
plugins/UltraLottery/config.yml, lang/es.yml, and menus/es.yml to suit your server.
- Run
/lottery admin reload after editing the files. Restart the server if you change the extra menu command.
The internal plugin name remains UltraLottery so existing installations continue using the same data folder. When updating, stop the server, back up plugins/UltraLottery/data.yml, remove the old JAR, and install the new one.
?️ Compatibility
Built against Paper API 1.20.4 with Java 17 bytecode. The plugin declares api-version: 1.20. Check the individual release's Minecraft version and loader labels for versions tested with this JAR.
? License and author
MIT License — You may use, modify, and redistribute the plugin under the license terms.
Created by jorge123987.
☕ Support development
If you would like to support future updates and testing:
评论 0
登录后参与评分
还没有评论,来抢沙发吧