├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.yml │ └── FEATURE_SUGGEST.yml ├── dependabot.yml └── workflows │ ├── dev-build.yml │ ├── main-build.yml │ └── pr-check.yml ├── .gitignore ├── .gradle ├── 7.4 │ ├── checksums │ │ ├── checksums.lock │ │ ├── md5-checksums.bin │ │ └── sha1-checksums.bin │ ├── dependencies-accessors │ │ ├── dependencies-accessors.lock │ │ └── gc.properties │ ├── executionHistory │ │ ├── executionHistory.bin │ │ └── executionHistory.lock │ ├── fileChanges │ │ └── last-build.bin │ ├── fileHashes │ │ ├── fileHashes.bin │ │ ├── fileHashes.lock │ │ └── resourceHashesCache.bin │ └── gc.properties ├── buildOutputCleanup │ ├── buildOutputCleanup.lock │ ├── cache.properties │ └── outputFiles.bin ├── file-system.probe └── vcs-1 │ └── gc.properties ├── .idea ├── .gitignore ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── compiler.xml ├── dbnavigator.xml ├── gradle.xml ├── inspectionProfiles │ └── Project_Default.xml ├── kotlinScripting.xml ├── kotlinc.xml ├── misc.xml ├── shelf │ ├── _2022_12_18_20_07____.xml │ ├── _2022_12_19_11_09____.xml │ ├── 在进行签出之前于_2022_12_18_20_07_取消提交了变更_[变更] │ │ └── shelved.patch │ ├── 在进行签出之前于_2022_12_19_11_09_取消提交了变更_[变更] │ │ └── shelved.patch │ └── 在进行签出之前于_2022_12_19_11_09_取消提交了变更_[变更]1 │ │ └── shelved.patch ├── uiDesigner.xml ├── vcs.xml └── workspace.xml ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── RELEASE_TEMPLE.md ├── build.gradle.kts ├── config.groovy ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── lib ├── groovy-4.0.2-sources.jar ├── groovy-4.0.2.jar ├── groovy-ant-4.0.2-sources.jar ├── groovy-ant-4.0.2.jar ├── groovy-astbuilder-4.0.2-sources.jar ├── groovy-astbuilder-4.0.2.jar ├── groovy-cli-commons-4.0.2-sources.jar ├── groovy-cli-commons-4.0.2.jar ├── groovy-cli-picocli-4.0.2-sources.jar ├── groovy-cli-picocli-4.0.2.jar ├── groovy-console-4.0.2-sources.jar ├── groovy-console-4.0.2.jar ├── groovy-contracts-4.0.2-sources.jar ├── groovy-contracts-4.0.2.jar ├── groovy-datetime-4.0.2-sources.jar ├── groovy-datetime-4.0.2.jar ├── groovy-dateutil-4.0.2-sources.jar ├── groovy-dateutil-4.0.2.jar ├── groovy-docgenerator-4.0.2-sources.jar ├── groovy-docgenerator-4.0.2.jar ├── groovy-ginq-4.0.2-sources.jar ├── groovy-ginq-4.0.2.jar ├── groovy-groovydoc-4.0.2-sources.jar ├── groovy-groovydoc-4.0.2.jar ├── groovy-groovysh-4.0.2-sources.jar ├── groovy-groovysh-4.0.2.jar ├── groovy-jmx-4.0.2-sources.jar ├── groovy-jmx-4.0.2.jar ├── groovy-json-4.0.2-sources.jar ├── groovy-json-4.0.2.jar ├── groovy-jsr223-4.0.2-sources.jar ├── groovy-jsr223-4.0.2.jar ├── groovy-macro-4.0.2-sources.jar ├── groovy-macro-4.0.2.jar ├── groovy-macro-library-4.0.2-sources.jar ├── groovy-macro-library-4.0.2.jar ├── groovy-nio-4.0.2-sources.jar ├── groovy-nio-4.0.2.jar ├── groovy-servlet-4.0.2-sources.jar ├── groovy-servlet-4.0.2.jar ├── groovy-sql-4.0.2-sources.jar ├── groovy-sql-4.0.2.jar ├── groovy-swing-4.0.2-sources.jar ├── groovy-swing-4.0.2.jar ├── groovy-templates-4.0.2-sources.jar ├── groovy-templates-4.0.2.jar ├── groovy-test-4.0.2-sources.jar ├── groovy-test-4.0.2.jar ├── groovy-test-junit5-4.0.2-sources.jar ├── groovy-test-junit5-4.0.2.jar ├── groovy-testng-4.0.2-sources.jar ├── groovy-testng-4.0.2.jar ├── groovy-toml-4.0.2-sources.jar ├── groovy-toml-4.0.2.jar ├── groovy-typecheckers-4.0.2-sources.jar ├── groovy-typecheckers-4.0.2.jar ├── groovy-xml-4.0.2-sources.jar └── groovy-xml-4.0.2.jar ├── libs └── TrChat-shaded.jar ├── settings.gradle.kts └── src ├── main ├── java │ └── moe │ │ └── xmcn │ │ └── catsero │ │ └── v3 │ │ ├── CatSero.java │ │ └── util │ │ ├── Logger.java │ │ └── Metrics.java ├── kotlin │ └── moe │ │ └── xmcn │ │ └── catsero │ │ └── v3 │ │ ├── Configuration.kt │ │ ├── I18n.kt │ │ ├── UpdateCheck.kt │ │ ├── core │ │ ├── CoreRegister.kt │ │ ├── listener │ │ │ ├── chatForward │ │ │ │ ├── OnQQGroupChat.kt │ │ │ │ ├── OnTrChatChat.kt │ │ │ │ └── OnVanillaChat.kt │ │ │ └── joinQuitForward │ │ │ │ └── OnPlayerJoin.kt │ │ └── timer │ │ │ └── chatForward │ │ │ └── Filter.kt │ │ └── util │ │ ├── MessageSender.kt │ │ ├── PAPI.kt │ │ └── TomlUtil.kt └── resources │ ├── config.toml │ ├── lang │ └── zh_CN │ │ ├── format.json │ │ └── message.json │ ├── mirai.toml │ ├── plugin.yml │ └── use-config.toml └── test └── java └── moe └── xmcn └── catsero ├── ChatExample.java ├── FileReaderTest.java ├── TestGetFileProtocol.java └── utils └── HttpClient.java /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # [XiaMoHuaHuo-CN] 4 | patreon: #user?u=84443866 # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: [ 'https://afdian.net/a/HuaHuo-CN', 'https://sponsors.huahuo-cn.tk' ] 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.yml: -------------------------------------------------------------------------------- 1 | name: 问题报告 2 | description: "如果你想反馈 Bug,请使用此模板。" 3 | labels: [ "漏洞bug" ] 4 | body: 5 | - type: textarea 6 | id: description 7 | attributes: 8 | label: 问题描述 9 | description: 在下方的编辑框描述你的问题 10 | placeholder: 请尽可能说明你遇到的问题,包括你是如何使用插件的,配置文件有没有调过等等 11 | validations: 12 | required: true 13 | - type: textarea 14 | id: recurrent 15 | attributes: 16 | label: 复现方法 17 | description: 在下方的编辑框描述如何触发这个漏洞(分步需换行请直接回车,会为你添加标号) 18 | placeholder: 能看到这个?说明你没有看描述,请自己加上“1. ” 19 | value: "1. " 20 | validations: 21 | required: true 22 | - type: input 23 | id: serverversion 24 | attributes: 25 | label: 服务端版本 26 | description: 填写你正在使用的服务端版本,例如 Paper-1.12.2 27 | placeholder: 在服务端输入 /ver 查看版本 28 | validations: 29 | required: true 30 | - type: input 31 | id: pluginversion 32 | attributes: 33 | label: CatSero 版本 34 | description: 填写你正在使用的 CatSero 版本 35 | placeholder: 在服务端输入 /catsero 查看版本 36 | validations: 37 | required: true 38 | - type: textarea 39 | id: serverlog 40 | attributes: 41 | label: 服务端日志 42 | description: 在下方复制你的服务端日志 43 | placeholder: 请提供完整的服务端日志。 44 | render: text 45 | validations: 46 | required: true 47 | - type: textarea 48 | id: extra 49 | attributes: 50 | label: 额外说明 51 | description: 还有什么要补充的吗? 52 | placeholder: | 53 | 提示: 54 | 你可以提供系统环境、Java版本、你使用了什么插件、重置插件配置后问题是否仍然存在、你使用的插件列表 55 | 你还可以提供截图和文件(直接拖动文件到编辑框) 56 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_SUGGEST.yml: -------------------------------------------------------------------------------- 1 | name: 功能建议 2 | description: "如果你想建议一些新的功能,请使用此模板。" 3 | labels: [ "功能enhancement" ] 4 | body: 5 | - type: textarea 6 | id: description 7 | attributes: 8 | label: 功能描述 9 | description: 在下方的编辑框描述你想要的功能 10 | placeholder: 请尽可能完整说明你的建议,包括相关功能应该如何正确工作、何时工作等。 11 | validations: 12 | required: true 13 | - type: textarea 14 | id: recurrent 15 | attributes: 16 | label: 使用方法 17 | description: 在下方的编辑框描述你想这个功能如何运作,如服务端启动时这个功能要怎么工作,或是执行某个命令时这个功能要怎么运作(分步需换行请直接回车,会为你添加标号) 18 | placeholder: 能看到这个?说明你没有看描述,请自己加上“1. ” 19 | value: "1. " 20 | validations: 21 | required: false 22 | - type: textarea 23 | id: extra 24 | attributes: 25 | label: 额外说明 26 | description: 还有什么要补充的吗? 27 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "gradle" 9 | directory: "/" 10 | schedule: 11 | interval: "daily" 12 | ignore: 13 | - dependency-name: "HikariCP" 14 | - dependency-name: "spigot-api" 15 | target-branch: "dev" 16 | -------------------------------------------------------------------------------- /.github/workflows/dev-build.yml: -------------------------------------------------------------------------------- 1 | name: b-dev Gradle - Build 2 | 3 | on: 4 | push: 5 | branches: [ dev ] 6 | 7 | jobs: 8 | build: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - name: Checkout Source 14 | uses: actions/checkout@v3 15 | 16 | - name: Set up JDK 11 17 | uses: actions/setup-java@v3.9.0 18 | with: 19 | java-version: '11' 20 | distribution: 'zulu' 21 | 22 | - name: Build with Gradle 23 | run: ./gradlew build 24 | 25 | - name: Upload Build Target 26 | uses: actions/upload-artifact@v3.1.1 27 | with: 28 | name: "CatSero-Test-Artifact" 29 | path: build/ 30 | 31 | - name: Upload Build Jar 32 | uses: actions/upload-artifact@v3.1.1 33 | with: 34 | name: "CatSero-Test-Jar" 35 | path: build/libs/CatSero*.jar 36 | -------------------------------------------------------------------------------- /.github/workflows/main-build.yml: -------------------------------------------------------------------------------- 1 | name: b-main Gradle - Build 2 | 3 | on: 4 | push: 5 | branches: [ v3 ] 6 | 7 | jobs: 8 | build: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - name: Checkout Source 14 | uses: actions/checkout@v3 15 | 16 | - name: Set up JDK 11 17 | uses: actions/setup-java@v3.9.0 18 | with: 19 | java-version: '11' 20 | distribution: 'zulu' 21 | 22 | - name: Build with Gradle 23 | run: ./gradlew build 24 | 25 | - name: Upload Build Target 26 | uses: actions/upload-artifact@v3.1.1 27 | with: 28 | name: "CatSero-Artifact" 29 | path: build/ 30 | 31 | - name: Upload Build Jar 32 | uses: actions/upload-artifact@v3.1.1 33 | with: 34 | name: "CatSero-Jar" 35 | path: build/libs/CatSero*.jar 36 | -------------------------------------------------------------------------------- /.github/workflows/pr-check.yml: -------------------------------------------------------------------------------- 1 | name: b-dev Gradle - Pull Request Check 2 | 3 | on: 4 | pull_request: 5 | branches: [ dev ] 6 | 7 | jobs: 8 | build: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - name: Checkout Source 14 | uses: actions/checkout@v3 15 | 16 | - name: Set up JDK 11 17 | uses: actions/setup-java@v3.9.0 18 | with: 19 | java-version: '11' 20 | distribution: 'zulu' 21 | 22 | - name: Test Build with Gradle 23 | run: ./gradlew build 24 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle/ 2 | build/ 3 | !gradle/wrapper/gradle-wrapper.jar 4 | !**/src/main/**/build/ 5 | !**/src/test/**/build/ 6 | 7 | ### IntelliJ IDEA ### 8 | .idea/ 9 | *.iws 10 | *.iml 11 | *.ipr 12 | out/ 13 | !**/src/main/**/out/ 14 | !**/src/test/**/out/ 15 | 16 | ### Eclipse ### 17 | .apt_generated 18 | .classpath 19 | .factorypath 20 | .project 21 | .settings 22 | .springBeans 23 | .sts4-cache 24 | bin/ 25 | !**/src/main/**/bin/ 26 | !**/src/test/**/bin/ 27 | 28 | ### NetBeans ### 29 | /nbproject/private/ 30 | /nbbuild/ 31 | /dist/ 32 | /nbdist/ 33 | /.nb-gradle/ 34 | 35 | ### VS Code ### 36 | .vscode/ 37 | 38 | ### Mac OS ### 39 | .DS_Store 40 | 41 | ### Test Server ### 42 | server-test/ 43 | -------------------------------------------------------------------------------- /.gradle/7.4/checksums/checksums.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/checksums/checksums.lock -------------------------------------------------------------------------------- /.gradle/7.4/checksums/md5-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/checksums/md5-checksums.bin -------------------------------------------------------------------------------- /.gradle/7.4/checksums/sha1-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/checksums/sha1-checksums.bin -------------------------------------------------------------------------------- /.gradle/7.4/dependencies-accessors/dependencies-accessors.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock -------------------------------------------------------------------------------- /.gradle/7.4/dependencies-accessors/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/dependencies-accessors/gc.properties -------------------------------------------------------------------------------- /.gradle/7.4/executionHistory/executionHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/executionHistory/executionHistory.bin -------------------------------------------------------------------------------- /.gradle/7.4/executionHistory/executionHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/executionHistory/executionHistory.lock -------------------------------------------------------------------------------- /.gradle/7.4/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gradle/7.4/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /.gradle/7.4/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/7.4/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /.gradle/7.4/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/7.4/gc.properties -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Sun Dec 18 18:26:10 CST 2022 2 | gradle.version=7.4 3 | -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /.gradle/file-system.probe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/file-system.probe -------------------------------------------------------------------------------- /.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muska-Ami/CatSero/37db5372936b38444f90e9deeed098fa151187d9/.gradle/vcs-1/gc.properties -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # 默认忽略的文件 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 10 | 11 | 12 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/dbnavigator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/kotlinScripting.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 2147483647 6 | true 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/shelf/_2022_12_18_20_07____.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.idea/shelf/_2022_12_19_11_09____.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.idea/shelf/在进行签出之前于_2022_12_18_20_07_取消提交了变更_[变更]/shelved.patch: -------------------------------------------------------------------------------- 1 | Index: src/main/java/moe/xmcn/catsero/Main.java 2 | IDEA additional info: 3 | Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP 4 | <+>package moe.xmcn.catsero;\r\n\r\nimport org.bukkit.plugin.java.JavaPlugin;\r\n\r\npublic class Main extends JavaPlugin {\r\n\r\n @Override\r\n public void onLoad() {\r\n\r\n }\r\n\r\n @Override\r\n public void onEnable() {\r\n\r\n }\r\n\r\n @Override\r\n public void onDisable() {\r\n\r\n }\r\n\r\n} 5 | =================================================================== 6 | diff --git a/src/main/java/moe/xmcn/catsero/Main.java b/src/main/java/moe/xmcn/catsero/Main.java 7 | --- a/src/main/java/moe/xmcn/catsero/Main.java 8 | +++ b/src/main/java/moe/xmcn/catsero/Main.java 9 | @@ -1,12 +1,24 @@ 10 | package moe.xmcn.catsero; 11 | 12 | +import moe.xmcn.catsero.utils.Logger; 13 | +import org.bukkit.Bukkit; 14 | import org.bukkit.plugin.java.JavaPlugin; 15 | 16 | +import java.util.ArrayList; 17 | +import java.util.Arrays; 18 | +import java.util.List; 19 | + 20 | public class Main extends JavaPlugin { 21 | 22 | @Override 23 | public void onLoad() { 24 | - 25 | + Logger.log("Loader", "Start loading CatSero"); 26 | + List env = Arrays.asList( 27 | + "Server Version: " + getServer().getVersion(), 28 | + "Bukkit Version: " + getServer().getBukkitVersion(), 29 | + "CatSero Version: " + 30 | + ); 31 | + Logger.log("Loader", env); 32 | } 33 | 34 | @Override 35 | Index: src/main/java/moe/xmcn/catsero/Config.java 36 | IDEA additional info: 37 | Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP 38 | <+>package moe.xmcn.catsero;\r\n\r\npublic interface Config {\r\n}\r\n 39 | =================================================================== 40 | diff --git a/src/main/java/moe/xmcn/catsero/Config.java b/src/main/java/moe/xmcn/catsero/Config.java 41 | --- a/src/main/java/moe/xmcn/catsero/Config.java 42 | +++ b/src/main/java/moe/xmcn/catsero/Config.java 43 | @@ -1,4 +1,7 @@ 44 | package moe.xmcn.catsero; 45 | 46 | public interface Config { 47 | + 48 | + String Version = 49 | + 50 | } 51 | Index: build.gradle.kts 52 | IDEA additional info: 53 | Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP 54 | <+>plugins {\r\n id(\"java\")\r\n}\r\n\r\ngroup = \"moe.xmcn.catsero\"\r\nversion = \"2.0-beta5\"\r\n\r\nrepositories {\r\n mavenCentral()\r\n maven(\"https://hub.spigotmc.org/nexus/content/repositories/snapshots\")\r\n maven(\"https://repo.extendedclip.com/content/repositories/placeholderapi\")\r\n maven(\"https://lss233.littleservice.cn/repositories/minecraft\")\r\n}\r\n\r\ndependencies {\r\n implementation(fileTree(mapOf(\"dir\" to \"libs\", \"include\" to listOf(\"*.jar\"))))\r\n implementation(\"org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT\")\r\n implementation(\"org.bstats:bstats-bukkit:3.0.0\")\r\n implementation(\"me.clip:placeholderapi:2.11.2\")\r\n implementation(\"io.github.dreamvoid:MiraiMC-Bukkit:1.7.1\")\r\n testImplementation(\"org.junit.jupiter:junit-jupiter-api:5.8.1\")\r\n testRuntimeOnly(\"org.junit.jupiter:junit-jupiter-engine:5.8.1\")\r\n}\r\n\r\ntasks.getByName(\"test\") {\r\n useJUnitPlatform()\r\n} 55 | =================================================================== 56 | diff --git a/build.gradle.kts b/build.gradle.kts 57 | --- a/build.gradle.kts 58 | +++ b/build.gradle.kts 59 | @@ -24,4 +24,4 @@ 60 | 61 | tasks.getByName("test") { 62 | useJUnitPlatform() 63 | -} 64 | \ No newline at end of file 65 | +} 66 | Index: .idea/workspace.xml 67 | IDEA additional info: 68 | Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP 69 | <+>\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n "keyToString": {\r\n "RunOnceActivity.OpenProjectViewOnStart": "true",\r\n "RunOnceActivity.ShowReadmeOnStart": "true",\r\n "SHARE_PROJECT_CONFIGURATION_FILES": "true",\r\n "last_opened_file_path": "D:/Otr/IdeaProjects/CatSero/server-test/plugins",\r\n "project.structure.last.edited": "模块",\r\n "project.structure.proportion": "0.15",\r\n "project.structure.side.proportion": "0.2",\r\n "settings.editor.selected.configurable": "project.propCompiler"\r\n }\r\n}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n true\r\n true\r\n false\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n true\r\n true\r\n false\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n true\r\n true\r\n false\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 1668927643545\r\n \r\n \r\n 1668936326161\r\n \r\n \r\n 1671360069526\r\n \r\n \r\n 1671360256606\r\n \r\n \r\n 1671360893293\r\n \r\n \r\n 1671361819867\r\n \r\n \r\n 1671372627652\r\n \r\n \r\n 1671373326475\r\n \r\n \r\n 1671377114320\r\n \r\n \r\n 1671377273961\r\n \r\n \r\n 1671377757151\r\n \r\n \r\n 1671386887060\r\n \r\n \r\n 1671387100927\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 70 | 71 | 72 | 73 | 74 | 75 | 76 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 105 | 107 | { 108 | "lastFilter": { 109 | "state": "OPEN" 110 | } 111 | } 112 | 113 | 119 | 120 | 121 | 123 | 124 | 126 | 127 | 128 | 129 | 130 | 131 | 134 | { 135 | "keyToString": { 136 | "ASKED_ADD_EXTERNAL_FILES": "true", 137 | "RunOnceActivity.OpenProjectViewOnStart": "true", 138 | "RunOnceActivity.ShowReadmeOnStart": "true", 139 | "SHARE_PROJECT_CONFIGURATION_FILES": "true", 140 | "git-widget-placeholder": "dev", 141 | "jdk.selected.JAVA_MODULE": "corretto-1.8", 142 | "last_directory_selection": "F:/CatSero/src/main/kotlin/moe/xmcn/catsero/v3", 143 | "last_opened_file_path": "F:/CatSero/server-test/plugins", 144 | "project.structure.last.edited": "工件", 145 | "project.structure.proportion": "0.15", 146 | "project.structure.side.proportion": "0.2", 147 | "run.code.analysis.last.selected.profile": "pProject Default", 148 | "settings.editor.selected.configurable": "CodeWithMe" 149 | } 150 | } 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 196 | 197 | 203 | 204 | 210 | 211 | 212 | 219 | 224 | 226 | true 227 | true 228 | false 229 | false 230 | 231 | 232 | 233 | 234 | 241 | 246 | 248 | true 249 | true 250 | false 251 | false 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 276 | 277 | 278 | 279 | 280 | 1668927643545 281 | 285 | 286 | 1673008269839 287 | 292 | 293 | 1673092758302 294 | 299 | 300 | 1673103091328 301 | 306 | 307 | 1673285567199 308 | 313 | 314 | 1673516991756 315 | 320 | 321 | 1673521147550 322 | 327 | 328 | 1673521664133 329 | 334 | 335 | 1673521975748 336 | 341 | 342 | 1673723706460 343 | 348 | 349 | 1673979049180 350 | 355 | 356 | 1674915998078 357 | 362 | 363 | 1675055915512 364 | 369 | 370 | 1675060726401 371 | 376 | 377 | 1675138651184 378 | 383 | 384 | 1675444481154 385 | 390 | 391 | 1675444519522 392 | 397 | 398 | 1675444568563 399 | 404 | 405 | 1675446922404 406 | 411 | 412 | 1675447353689 413 | 418 | 419 | 1675447895849 420 | 425 | 426 | 1675449531953 427 | 432 | 433 | 1675499060708 434 | 439 | 440 | 1675500284348 441 | 446 | 447 | 1675500326689 448 | 453 | 454 | 1675500931817 455 | 460 | 461 | 1675501455260 462 | 467 | 468 | 1675530863853 469 | 474 | 475 | 1675530869536 476 | 481 | 482 | 1675536748386 483 | 488 | 489 | 1678452731847 490 | 495 | 496 | 1678458887467 497 | 502 | 503 | 1678459551424 504 | 509 | 510 | 1678459867811 511 | 516 | 517 | 1678465857096 518 | 523 | 524 | 1678466065872 525 | 530 | 531 | 1678500732660 532 | 537 | 538 | 1678545253068 539 | 544 | 545 | 1678553102471 546 | 551 | 552 | 1678555863313 553 | 558 | 559 | 1678556420446 560 | 565 | 566 | 1678587372934 567 | 572 | 573 | 1678604018764 574 | 579 | 580 | 1678604049731 581 | 586 | 587 | 1678604357935 588 | 593 | 594 | 1678607318945 595 | 600 | 601 | 1679118516436 602 | 607 | 608 | 1680964923418 609 | 614 | 615 | 1680969011754 616 | 621 | 622 | 1681018523197 623 | 628 | 631 | 632 | 634 | 635 | 644 | 645 | 646 | 677 | 678 | 679 |