DailyLoginBonus
DailyLoginBonus 是一款可自定义的每日登录奖励插件,适用于 Paper 或 Folia 服务器软件。它允许你设置自定义的每日登录奖励数量,以及该奖励随玩家连续登录天数(streak)增长的百分比。
功能特性
- 可自定义的每日登录奖励。
- 可自定义的奖励冷却时间(默认 12 小时)。
- 可自定义的连续登录重置时间(默认 24 小时)。
- 可自定义的每日连续登录增长百分比(默认 20%)。
安装
- 从 Releases 页面下载 DailyLoginBonus 的最新版本。
- 将下载的 JAR 文件放入你的 Paper 1.20 - 1.21.11 服务器的
plugins 目录中。
- 启动你的 Paper 服务器以生成默认配置文件。
配置
在首次运行安装了 DailyLoginBonus 的服务器后,会在 plugins/dailyloginbonus 目录下创建一个默认的配置文件。
配置文件
配置文件 config.yml 允许你自定义插件。以下是默认配置:
baseReward: 5000
percentageIncrease: 20
cooldownHours: 12
streakResetHours: 24
开发
前置要求
构建
克隆仓库并使用 Maven 构建插件:
git clone https://github.com/AdrianJoeK/DailyLoginBonus.git
cd DailyLoginBonus
mvn package
编译后的 JAR 文件将位于 target 目录中。
许可证
DailyLoginBonus 遵循 AGPL-3.0 许可证。有关更多详细信息,请参阅 LICENSE 文件。
贡献
欢迎贡献!请在 GitHub 上提交 Issue 或 Pull Request。
致谢
- PaperMC - DailyLoginBonus 所基于的 Minecraft 服务器软件。
- Vault - DailyLoginBonus 所使用的经济系统。
DailyLoginBonus
DailyLoginBonus is a customizable daily login bonus plugin for the Paper or Folia server software. It allows you to set a custom daily login bonus amount, and the percentage it should increase with the players daily streak.
Features
- Customizable daily login bonus.
- Customizable reward cooldown (default 12 hours).
- Customizable streak reset time (default 24 hours).
- Customizable daily streak percentage increase (default 20%).
Installation
- Download the latest release of DailyLoginBonus from the Releases page.
- Place the downloaded JAR file in the
plugins directory of your Paper 1.20 - 1.21.11 server.
- Start your Paper server to generate the default configuration file.
Configuration
After running the server for the first time with DailyLoginBonus installed, a default configuration file will be created in the plugins/dailyloginbonus directory.
Configuration File
The configuration file config.yml allows you to customize the plugin. Here is the default configuration:
baseReward: 5000
percentageIncrease: 20
cooldownHours: 12
streakResetHours: 24
Development
Prerequisites
Building
Clone the repository and build the plugin using Maven:
git clone https://github.com/AdrianJoeK/DailyLoginBonus.git
cd DailyLoginBonus
mvn package
The compiled JAR file will be located in the target directory.
License
DailyLoginBonus is licensed under the AGPL-3.0 License. See the LICENSE file for more details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Acknowledgements
- PaperMC - The Minecraft server software that DailyLoginBonus is built for.
- Vault - The economy system used by DailyLoginBonus.
评论 0
登录后参与评分
还没有评论,来抢沙发吧