Skip to content

Commit

Permalink
更新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFloodDragon committed Jun 30, 2023
1 parent b4f0f41 commit 7ec9d63
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 6 deletions.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@

***

## 计划
## 版本

该项目库内所有版本号为测试版本号,正式版本不采用

### Pre Alpha-第一阶段 (当前阶段)

<h6>版本号:A.0.x.x.x</h6>

- [ ] 插件前期内容开发(功能实现)

#### 计划

- [ ] 基础功能实现
- [ ] 工作空间
Expand All @@ -16,6 +26,24 @@
- [ ] FItem的其他插件支持
- [ ] 完成脚本动态加载、卸载功能 <small>*高优先级</small>

### Alpha-第二阶段 (未达到)

<h6>版本号:A.x.x.x</h6>

- [ ] 继续完善功能(完成了部分功能)

### Beta-第三阶段 (未达到,远得很)

<h6>版本号:B.x.x.x</h6>

- [ ] 插件基本内容开发完成,开始测试

### RC-第四阶段 (没个好几年达不到)

<h6>版本号:0.0.1-RC</h6>

- [ ] 第一个发布版,也就是本储存库删除时

***

### 构建
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Configuration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import java.text.SimpleDateFormat

const val rootName = "FDUtilities"
const val rootGroup = "cn.fd.utilities"
const val rootVersion = "0.0.1-BETA"
const val rootVersion = "A.0.0.0.1"

const val kotlinVersion = "1.8.20"
const val shadowJarVersion = "8.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ object MainCommand {
}
}

//测试命令
@CommandBody
val test = subCommand {
execute<ProxyCommandSender> { sender, _, _ ->
debug()
}
}

@CommandBody
val classes = subCommand {
execute<ProxyCommandSender> { sender, _, _ ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ package cn.fd.utilities.util
import taboolib.common.io.runningClassMap
import taboolib.common.util.unsafeLazy

/**
* 当前插件的所有类 (排除Taboolib本身的)
*/
val runningClassMapWithoutTaboolib by unsafeLazy { runningClassMap.filter { !it.key.startsWith("tb") } }

/**
* 当前插件的所有类的集合 (排除Taboolib本身的)
*/
val runningClassesWithoutTaboolib by unsafeLazy { runningClassMapWithoutTaboolib.values }
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package cn.fd.utilities.util

import taboolib.module.lang.Level

fun debug(info: Any?, auto: Boolean = true, level: Level = Level.INFO) {
fun debug(info: Any? = Any(), auto: Boolean = true, level: Level = Level.INFO) {
if (auto) {
when (info) {
is Iterable<*> -> info.forEach { println(it) }
is Map<*, *> -> info.forEach { println(it.key.toString() + " | " + it.value.toString()) }
else -> println(info)
}
}
println(info)
} else println(info)
}

/**
Expand Down

0 comments on commit 7ec9d63

Please sign in to comment.