1
mirror of https://github.com/carm-outsource/TimeReward.git synced 2024-09-19 19:25:49 +00:00
TimeReward/README.md

66 lines
2.0 KiB
Markdown
Raw Normal View History

2022-02-27 14:07:22 +00:00
```text
2022-02-27 14:43:51 +00:00
_____ _ ______ _
|_ _(_) | ___ \ | |
| | _ _ __ ___ ___| |_/ /_____ ____ _ _ __ __| |
| | | | '_ ` _ \ / _ \ // _ \ \ /\ / / _` | '__/ _` |
| | | | | | | | | __/ |\ \ __/\ V V / (_| | | | (_| |
\_/ |_|_| |_| |_|\___\_| \_\___| \_/\_/ \__,_|_| \__,_|
2022-02-27 14:07:22 +00:00
```
2022-02-27 14:43:51 +00:00
# TimeReward
2022-02-27 14:07:22 +00:00
2022-02-27 14:43:51 +00:00
[![workflow](https://github.com/CarmJos/TimeReward/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/CarmJos/TimeReward/actions/workflows/maven.yml)
2022-02-27 14:07:22 +00:00
![Support](https://img.shields.io/badge/Minecraft-Java%201.16--Latest-yellow)
2022-02-27 14:43:51 +00:00
![](https://visitor-badge.glitch.me/badge?page_id=TimeReward.readme)
2022-02-27 14:07:22 +00:00
2022-02-27 14:43:51 +00:00
在线时长自动领奖插件通过指令发放奖励基于EasyPlugin实现。
2022-02-27 14:07:22 +00:00
## 插件依赖
- **[必须]** 插件本体基于 [Spigot-API](https://hub.spigotmc.org/stash/projects/SPIGOT) 、 [BukkitAPI](http://bukkit.org/) 实现。
- **[自带]** 插件功能基于 [EasyPlugin](https://github.com/CarmJos/EasyPlugin) 实现。
- **[自带]** 数据功能基于 [EasySQL](https://github.com/CarmJos/EasySQL) 实现。
2022-02-28 10:08:14 +00:00
2022-02-27 14:07:22 +00:00
详细依赖列表可见 [Dependencies](https://github.com/CarmJos/timereward/network/dependencies) 。
## 插件指令
指令主指令为 `/TimeReward`
```text
```
## 插件权限
```text
# TimeReward.admin
- 建筑魔杖的管理权限。
```
2022-02-28 10:08:14 +00:00
## 插件变量
```text
# %TimeReward_time%
- 得到玩家总共的在线时长(秒)。
# %TimeReward_reward_<奖励ID>%
- 得到某个奖励配置的名称。
# %TimeReward_claimed_<奖励ID>%
- 得到玩家是否已经领取了某个奖励。
- * 也可以代表玩家是否可以领取某个奖励
- * 因为一旦可以领取就会自动领取,变为已领取状态
```
2022-02-27 14:07:22 +00:00
## 配置文件
### 插件配置文件 ([config.yml](src/main/resources/config.yml))
详见源文件。
### 消息配置文件 ([messages.yml](src/main/java/cc/carm/plugin/timereward/configuration/PluginMessages.java))
详见代码源文件,将在首次启动时生成配置。