1
mirror of https://github.com/CarmJos/MineConfiguration.git synced 2026-06-05 06:51:49 +08:00

Compare commits

...

71 Commits

Author SHA1 Message Date
dependabot[bot] 6944210ed4 chore(deps-dev): bump org.apache.maven.plugins:maven-surefire-plugin
Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.5.4 to 3.5.5.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.4...surefire-3.5.5)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-version: 3.5.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-10 08:05:57 +08:00
renovate[bot] c159be5bd1 chore(deps): update actions/upload-artifact action to v7 2026-03-10 08:05:50 +08:00
dependabot[bot] 0b1866e59e chore(deps-dev): bump org.apache.maven.plugins:maven-shade-plugin
Bumps [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.6.1...maven-shade-plugin-3.6.2)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-shade-plugin
  dependency-version: 3.6.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-10 08:05:28 +08:00
renovate[bot] a3bcf78ff1 chore(deps): update actions/upload-artifact action to v6 2026-02-21 00:58:06 +08:00
dependabot[bot] f4b7dd99c8 chore(deps): bump org.apache.maven.plugins:maven-release-plugin
Bumps [org.apache.maven.plugins:maven-release-plugin](https://github.com/apache/maven-release) from 3.2.0 to 3.3.1.
- [Release notes](https://github.com/apache/maven-release/releases)
- [Commits](https://github.com/apache/maven-release/compare/maven-release-3.2.0...maven-release-3.3.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-release-plugin
  dependency-version: 3.3.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-21 00:57:52 +08:00
dependabot[bot] 8828421632 chore(deps): bump com.github.cryptomorin:XSeries from 13.5.1 to 13.6.0
Bumps [com.github.cryptomorin:XSeries](https://github.com/CryptoMorin/XSeries) from 13.5.1 to 13.6.0.
- [Release notes](https://github.com/CryptoMorin/XSeries/releases)
- [Commits](https://github.com/CryptoMorin/XSeries/compare/v13.5.1...v13.6.0)

---
updated-dependencies:
- dependency-name: com.github.cryptomorin:XSeries
  dependency-version: 13.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-21 00:57:45 +08:00
dependabot[bot] b253658bd9 chore(deps): bump deps.adventure.version from 4.25.0 to 4.26.1
Bumps `deps.adventure.version` from 4.25.0 to 4.26.1.

Updates `net.kyori:adventure-api` from 4.25.0 to 4.26.1
- [Release notes](https://github.com/PaperMC/adventure/releases)
- [Commits](https://github.com/PaperMC/adventure/compare/v4.25.0...v4.26.1)

Updates `net.kyori:adventure-text-serializer-legacy` from 4.25.0 to 4.26.1
- [Release notes](https://github.com/PaperMC/adventure/releases)
- [Commits](https://github.com/PaperMC/adventure/compare/v4.25.0...v4.26.1)

Updates `net.kyori:adventure-text-serializer-plain` from 4.25.0 to 4.26.1
- [Release notes](https://github.com/PaperMC/adventure/releases)
- [Commits](https://github.com/PaperMC/adventure/compare/v4.25.0...v4.26.1)

Updates `net.kyori:adventure-text-minimessage` from 4.25.0 to 4.26.1
- [Release notes](https://github.com/PaperMC/adventure/releases)
- [Commits](https://github.com/PaperMC/adventure/compare/v4.25.0...v4.26.1)

---
updated-dependencies:
- dependency-name: net.kyori:adventure-api
  dependency-version: 4.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.kyori:adventure-text-serializer-legacy
  dependency-version: 4.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.kyori:adventure-text-serializer-plain
  dependency-version: 4.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.kyori:adventure-text-minimessage
  dependency-version: 4.26.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-21 00:57:30 +08:00
dependabot[bot] 17ba07b2a8 chore(deps): bump org.sonatype.central:central-publishing-maven-plugin
Bumps [org.sonatype.central:central-publishing-maven-plugin](https://github.com/sonatype/central-publishing-maven-plugin) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/sonatype/central-publishing-maven-plugin/commits)

---
updated-dependencies:
- dependency-name: org.sonatype.central:central-publishing-maven-plugin
  dependency-version: 0.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-21 00:57:16 +08:00
dependabot[bot] 7da7704065 chore(deps-dev): bump org.apache.maven.plugins:maven-compiler-plugin
Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.14.1 to 3.15.0.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.14.1...maven-compiler-plugin-3.15.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-version: 3.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-21 00:57:03 +08:00
renovate[bot] 7aa9f02c87 fix(deps): update dependency org.jetbrains:annotations to v26.1.0 2026-02-21 00:56:56 +08:00
renovate[bot] 136e16ed59 chore(deps): update actions/upload-artifact action to v5 2025-12-01 09:32:34 +08:00
dependabot[bot] 4e5405304c chore(deps): bump org.apache.maven.plugins:maven-release-plugin
Bumps [org.apache.maven.plugins:maven-release-plugin](https://github.com/apache/maven-release) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/apache/maven-release/releases)
- [Commits](https://github.com/apache/maven-release/compare/maven-release-3.1.1...maven-release-3.2.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-release-plugin
  dependency-version: 3.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 09:32:20 +08:00
renovate[bot] 4c309fd7e1 chore(deps): update codacy/codacy-analysis-cli-action digest to 30783d0 2025-12-01 09:32:14 +08:00
dependabot[bot] 9e9c49032f chore(deps): bump org.apache.maven.plugins:maven-jar-plugin
Bumps [org.apache.maven.plugins:maven-jar-plugin](https://github.com/apache/maven-jar-plugin) from 3.4.2 to 3.5.0.
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.4.2...maven-jar-plugin-3.5.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-jar-plugin
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 09:32:01 +08:00
renovate[bot] 0a4191666e chore(deps): update actions/checkout action to v6 2025-12-01 09:31:55 +08:00
renovate[bot] 043c6166fc chore(deps): update dependency org.apache.maven.plugins:maven-source-plugin to v3.4.0 2025-12-01 09:31:49 +08:00
renovate[bot] 2e4021a13e fix(deps): update dependency net.md-5:bungeecord-api to v1.21-r0.4 2025-10-23 10:37:49 +08:00
dependabot[bot] 4b69661562 chore(deps): bump deps.configured.version from 4.1.7 to 4.2.0
Bumps `deps.configured.version` from 4.1.7 to 4.2.0.

Updates `cc.carm.lib:configured-core` from 4.1.7 to 4.2.0
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.7...4.2.0)

Updates `cc.carm.lib:configured-feature-commentable` from 4.1.7 to 4.2.0
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.7...4.2.0)

Updates `cc.carm.lib:configured-feature-file` from 4.1.7 to 4.2.0
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.7...4.2.0)

Updates `cc.carm.lib:configured-feature-text` from 4.1.7 to 4.2.0
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.7...4.2.0)

Updates `cc.carm.lib:configured-yaml` from 4.1.7 to 4.2.0
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.7...4.2.0)

---
updated-dependencies:
- dependency-name: cc.carm.lib:configured-core
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: cc.carm.lib:configured-feature-commentable
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: cc.carm.lib:configured-feature-file
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: cc.carm.lib:configured-feature-text
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: cc.carm.lib:configured-yaml
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 10:37:37 +08:00
dependabot[bot] d81a2ecf99 chore(deps): bump net.md-5:bungeecord-chat
Bumps [net.md-5:bungeecord-chat](https://github.com/SpigotMC/BungeeCord) from 1.21-R0.3-deprecated+build.22 to 1.21-R0.4.
- [Commits](https://github.com/SpigotMC/BungeeCord/commits)

---
updated-dependencies:
- dependency-name: net.md-5:bungeecord-chat
  dependency-version: 1.21-R0.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 10:37:31 +08:00
dependabot[bot] a5d564c40c chore(deps): bump deps.adventure.version from 4.24.0 to 4.25.0
Bumps `deps.adventure.version` from 4.24.0 to 4.25.0.

Updates `net.kyori:adventure-api` from 4.24.0 to 4.25.0
- [Release notes](https://github.com/KyoriPowered/adventure/releases)
- [Commits](https://github.com/KyoriPowered/adventure/compare/v4.24.0...v4.25.0)

Updates `net.kyori:adventure-text-serializer-legacy` from 4.24.0 to 4.25.0
- [Release notes](https://github.com/KyoriPowered/adventure/releases)
- [Commits](https://github.com/KyoriPowered/adventure/compare/v4.24.0...v4.25.0)

Updates `net.kyori:adventure-text-serializer-plain` from 4.24.0 to 4.25.0
- [Release notes](https://github.com/KyoriPowered/adventure/releases)
- [Commits](https://github.com/KyoriPowered/adventure/compare/v4.24.0...v4.25.0)

Updates `net.kyori:adventure-text-minimessage` from 4.24.0 to 4.25.0
- [Release notes](https://github.com/KyoriPowered/adventure/releases)
- [Commits](https://github.com/KyoriPowered/adventure/compare/v4.24.0...v4.25.0)

---
updated-dependencies:
- dependency-name: net.kyori:adventure-api
  dependency-version: 4.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.kyori:adventure-text-serializer-legacy
  dependency-version: 4.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.kyori:adventure-text-serializer-plain
  dependency-version: 4.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: net.kyori:adventure-text-minimessage
  dependency-version: 4.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 10:37:13 +08:00
renovate[bot] 30e1e440ef chore(deps): update github/codeql-action action to v4 2025-10-23 10:37:07 +08:00
dependabot[bot] e28501e63a chore(deps): bump com.github.cryptomorin:XSeries from 13.4.0 to 13.5.1
Bumps [com.github.cryptomorin:XSeries](https://github.com/CryptoMorin/XSeries) from 13.4.0 to 13.5.1.
- [Release notes](https://github.com/CryptoMorin/XSeries/releases)
- [Commits](https://github.com/CryptoMorin/XSeries/compare/v13.4.0...v13.5.1)

---
updated-dependencies:
- dependency-name: com.github.cryptomorin:XSeries
  dependency-version: 13.5.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 10:37:00 +08:00
carm b7f9add038 feat: Bump to 3.1.4 2025-09-24 11:11:04 +08:00
renovate[bot] d4b06fe7e6 fix(deps): update dependency net.md-5:bungeecord-chat to v1.21-r0.3-deprecated+build.22 2025-09-24 11:10:33 +08:00
carm 2b68387e7b chore(platform): Make "velocity" to "adventure". 2025-09-24 11:06:13 +08:00
carm 804639d6a0 chore(platform): Make "velocity" to "adventure". 2025-09-24 10:53:40 +08:00
carm ee47be4842 chore(platform): Make "velocity" to "adventure". 2025-09-24 10:41:23 +08:00
dependabot[bot] 63eabb955c chore(deps): bump org.apache.maven.plugins:maven-javadoc-plugin
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.11.3 to 3.12.0.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.11.3...maven-javadoc-plugin-3.12.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-version: 3.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-24 09:19:45 +08:00
dependabot[bot] 35b4726c82 chore(deps): bump org.apache.maven.plugins:maven-compiler-plugin
Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.14.0 to 3.14.1.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.14.0...maven-compiler-plugin-3.14.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-version: 3.14.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-24 09:19:40 +08:00
dependabot[bot] ca47d2b3a8 chore(deps): bump org.sonatype.central:central-publishing-maven-plugin
Bumps [org.sonatype.central:central-publishing-maven-plugin](https://github.com/sonatype/central-publishing-maven-plugin) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/sonatype/central-publishing-maven-plugin/commits)

---
updated-dependencies:
- dependency-name: org.sonatype.central:central-publishing-maven-plugin
  dependency-version: 0.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-24 09:19:27 +08:00
renovate[bot] 75279de348 chore(deps): update dependency org.apache.maven.plugins:maven-shade-plugin to v3.6.1 2025-09-14 16:56:53 +08:00
renovate[bot] 3cb0eac566 chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.4 2025-09-14 16:56:47 +08:00
renovate[bot] 60aa5ccb1f fix(deps): update dependency com.github.cryptomorin:xseries to v13.4.0 2025-09-14 16:56:41 +08:00
renovate[bot] 19286850fa fix(deps): update dependency org.jetbrains:annotations to v26.0.2-1 2025-09-06 10:08:57 +08:00
dependabot[bot] 6e755ee48e chore(deps): bump org.apache.maven.plugins:maven-gpg-plugin
Bumps [org.apache.maven.plugins:maven-gpg-plugin](https://github.com/apache/maven-gpg-plugin) from 3.2.7 to 3.2.8.
- [Release notes](https://github.com/apache/maven-gpg-plugin/releases)
- [Commits](https://github.com/apache/maven-gpg-plugin/compare/maven-gpg-plugin-3.2.7...maven-gpg-plugin-3.2.8)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-gpg-plugin
  dependency-version: 3.2.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 23:44:16 +08:00
dependabot[bot] f0f4de7d93 chore(deps): bump com.github.cryptomorin:XSeries from 13.3.1 to 13.3.3
---
updated-dependencies:
- dependency-name: com.github.cryptomorin:XSeries
  dependency-version: 13.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 23:44:09 +08:00
renovate[bot] c0045a8ab0 chore(deps): update codacy/codacy-analysis-cli-action digest to d28ce58 2025-08-21 23:44:03 +08:00
dependabot[bot] 2c2adeadad chore(deps): bump deps.configured.version from 4.1.5 to 4.1.7
Bumps `deps.configured.version` from 4.1.5 to 4.1.7.

Updates `cc.carm.lib:configured-core` from 4.1.5 to 4.1.7
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.5...4.1.7)

Updates `cc.carm.lib:configured-feature-commentable` from 4.1.5 to 4.1.7
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.5...4.1.7)

Updates `cc.carm.lib:configured-feature-file` from 4.1.5 to 4.1.7
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.5...4.1.7)

Updates `cc.carm.lib:configured-feature-text` from 4.1.5 to 4.1.7
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.5...4.1.7)

Updates `cc.carm.lib:configured-yaml` from 4.1.5 to 4.1.7
- [Release notes](https://github.com/CarmJos/configured/releases)
- [Commits](https://github.com/CarmJos/configured/compare/4.1.5...4.1.7)

---
updated-dependencies:
- dependency-name: cc.carm.lib:configured-core
  dependency-version: 4.1.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:configured-feature-commentable
  dependency-version: 4.1.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:configured-feature-file
  dependency-version: 4.1.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:configured-feature-text
  dependency-version: 4.1.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:configured-yaml
  dependency-version: 4.1.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 23:43:46 +08:00
renovate[bot] 30bb6c18ee fix(deps): update dependency net.md-5:bungeecord-chat to v1.21-r0.3-deprecated+build.22 2025-08-21 23:43:39 +08:00
renovate[bot] eb5d7351f1 chore(deps): update actions/checkout action to v5 2025-08-21 23:43:30 +08:00
dependabot[bot] 5a58277722 chore(deps): bump org.apache.maven.plugins:maven-javadoc-plugin
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.11.2 to 3.11.3.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.11.2...maven-javadoc-plugin-3.11.3)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-version: 3.11.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 23:43:14 +08:00
renovate[bot] dda8bc5e7a chore(deps): update actions/setup-java action to v5 2025-08-21 23:43:08 +08:00
renovate[bot] 5d956cd6f6 fix(deps): update dependency net.md-5:bungeecord-api to v1.21-r0.3 2025-06-25 06:29:50 +08:00
dependabot[bot] 366aa372d9 chore(deps): bump net.md-5:bungeecord-chat from 1.21-R0.2 to 1.21-R0.3
Bumps [net.md-5:bungeecord-chat](https://github.com/SpigotMC/BungeeCord) from 1.21-R0.2 to 1.21-R0.3.
- [Commits](https://github.com/SpigotMC/BungeeCord/commits)

---
updated-dependencies:
- dependency-name: net.md-5:bungeecord-chat
  dependency-version: 1.21-R0.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 06:29:38 +08:00
dependabot[bot] 2a9c7d4ec5 chore(deps): bump org.sonatype.central:central-publishing-maven-plugin
Bumps [org.sonatype.central:central-publishing-maven-plugin](https://github.com/sonatype/central-publishing-maven-plugin) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/sonatype/central-publishing-maven-plugin/commits)

---
updated-dependencies:
- dependency-name: org.sonatype.central:central-publishing-maven-plugin
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-25 06:29:26 +08:00
dependabot[bot] 390552efed chore(deps): bump com.github.cryptomorin:XSeries from 13.3.0 to 13.3.1
Bumps [com.github.cryptomorin:XSeries](https://github.com/CryptoMorin/XSeries) from 13.3.0 to 13.3.1.
- [Release notes](https://github.com/CryptoMorin/XSeries/releases)
- [Commits](https://github.com/CryptoMorin/XSeries/compare/v13.3.0...v13.3.1)

---
updated-dependencies:
- dependency-name: com.github.cryptomorin:XSeries
  dependency-version: 13.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-04 13:04:16 +08:00
dependabot[bot] 6eafb82ce5 chore(deps): bump cc.carm.lib:easyplugin-color from 1.5.12 to 1.5.13
Bumps [cc.carm.lib:easyplugin-color](https://github.com/CarmJos/EasyPlugin) from 1.5.12 to 1.5.13.
- [Release notes](https://github.com/CarmJos/EasyPlugin/releases)
- [Commits](https://github.com/CarmJos/EasyPlugin/compare/1.5.12...1.5.13)

---
updated-dependencies:
- dependency-name: cc.carm.lib:easyplugin-color
  dependency-version: 1.5.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 15:05:17 +08:00
dependabot[bot] 1ee6474c0e chore(deps): bump com.github.cryptomorin:XSeries from 13.2.0 to 13.3.0
Bumps [com.github.cryptomorin:XSeries](https://github.com/CryptoMorin/XSeries) from 13.2.0 to 13.3.0.
- [Release notes](https://github.com/CryptoMorin/XSeries/releases)
- [Commits](https://github.com/CryptoMorin/XSeries/compare/v13.2.0...v13.3.0)

---
updated-dependencies:
- dependency-name: com.github.cryptomorin:XSeries
  dependency-version: 13.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 15:05:06 +08:00
carm b26d3ae52c docs: Drop visitors counter 2025-05-14 04:27:01 +08:00
carm 8d972612e4 feat: Updated to 3.1.3 2025-05-14 04:26:40 +08:00
carm 76d22520b9 feat: Updated to 3.1.3 2025-05-14 03:30:11 +08:00
carm d8f5615f2d feat: Updated to 3.1.3 2025-05-14 03:19:44 +08:00
renovate[bot] ac279f71c0 fix(deps): update deps.configured.version to v4.1.4 2025-05-14 03:16:58 +08:00
carm 0c1026f37e feat: Updated to 3.1.2 2025-05-14 02:51:03 +08:00
carm 112e34e1b4 feat: Updated to 3.1.2 2025-05-14 02:49:35 +08:00
renovate[bot] ce4ceaef73 chore(deps): update dependency junit:junit to v4.14-20200802.183205-9 2025-05-14 02:48:12 +08:00
renovate[bot] 10ad1c8fcd fix(deps): update dependency net.md-5:bungeecord-api to v1.21-r0.2 2025-04-18 10:56:13 +08:00
dependabot[bot] abdbd88946 chore(deps): bump net.md-5:bungeecord-chat
Bumps [net.md-5:bungeecord-chat](https://github.com/SpigotMC/BungeeCord) from 1.20-R0.2-deprecated+build.19 to 1.21-R0.2.
- [Commits](https://github.com/SpigotMC/BungeeCord/commits)

---
updated-dependencies:
- dependency-name: net.md-5:bungeecord-chat
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-18 10:56:06 +08:00
dependabot[bot] 517b661a13 chore(deps): bump com.github.cryptomorin:XSeries from 13.1.0 to 13.2.0
Bumps [com.github.cryptomorin:XSeries](https://github.com/CryptoMorin/XSeries) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/CryptoMorin/XSeries/releases)
- [Commits](https://github.com/CryptoMorin/XSeries/compare/v13.1.0...v13.2.0)

---
updated-dependencies:
- dependency-name: com.github.cryptomorin:XSeries
  dependency-version: 13.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-18 10:55:50 +08:00
dependabot[bot] 4ddd2a3454 chore(deps): bump org.apache.maven.plugins:maven-surefire-plugin
Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.2...surefire-3.5.3)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
  dependency-version: 3.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-18 10:55:45 +08:00
carm 50f7eb31bb chore: Remove "resourcesPath" by default. 2025-03-29 03:09:36 +08:00
carm e44e74a512 feat(deps): Update with EasyConfiguration 2025-03-21 03:39:46 +08:00
carm 051049eee2 feat(deps): Update with EasyConfiguration 2025-03-21 02:39:46 +08:00
renovate[bot] c4010bb642 fix(deps): update dependency com.github.cryptomorin:xseries to v13.1.0 2025-03-17 03:28:19 +08:00
carm 420eb93366 feat(deps): Update with EasyConfiguration 2025-03-17 03:26:32 +08:00
dependabot[bot] b346fc7600 chore(deps): bump deps.easyconfifuration.version from 4.0.10 to 4.0.11
Bumps `deps.easyconfifuration.version` from 4.0.10 to 4.0.11.

Updates `cc.carm.lib:easyconfiguration-core` from 4.0.10 to 4.0.11
- [Release notes](https://github.com/CarmJos/EasyConfiguration/releases)
- [Commits](https://github.com/CarmJos/EasyConfiguration/compare/4.0.10...4.0.11)

Updates `cc.carm.lib:easyconfiguration-feature-commentable` from 4.0.10 to 4.0.11

Updates `cc.carm.lib:easyconfiguration-feature-file` from 4.0.10 to 4.0.11

Updates `cc.carm.lib:easyconfiguration-feature-text` from 4.0.10 to 4.0.11

Updates `cc.carm.lib:easyconfiguration-yaml` from 4.0.10 to 4.0.11

---
updated-dependencies:
- dependency-name: cc.carm.lib:easyconfiguration-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:easyconfiguration-feature-commentable
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:easyconfiguration-feature-file
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:easyconfiguration-feature-text
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: cc.carm.lib:easyconfiguration-yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-12 04:38:29 +08:00
carm f354258593 feat(deps): Update with EasyConfiguration 2025-03-04 02:07:59 +08:00
carm e859722a85 feat(deps): Update with EasyConfiguration 2025-03-04 01:41:37 +08:00
carm adf26baf59 ci(deploy): Cancel javadoc deployment 2025-02-25 01:44:28 +08:00
carm 3d814baa8f build(deps): Update with EasyConfiguration 2025-02-25 01:43:30 +08:00
dependabot[bot] c5c93d836f chore(deps): bump org.apache.maven.plugins:maven-compiler-plugin
Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.13.0 to 3.14.0.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.13.0...maven-compiler-plugin-3.14.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-compiler-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-22 10:21:42 +08:00
24 changed files with 206 additions and 165 deletions
+3 -3
View File
@@ -29,11 +29,11 @@ jobs:
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@09916000460adeeedc96b9704f86deba53e2ad5d
uses: codacy/codacy-analysis-cli-action@30783d03e758713bb5ed7b79292cfb14b9dd9a4a
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
@@ -49,6 +49,6 @@ jobs:
# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: results.sarif
+4 -4
View File
@@ -38,11 +38,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4
# ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
+5 -51
View File
@@ -16,9 +16,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: "Set up JDK"
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
@@ -29,67 +29,21 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: "Maven Deploy With Javadoc"
- name: "Maven Deploy"
run: mvn -B -Pgithub deploy --file pom.xml -DskipTests
env:
MAVEN_USERNAME: ${{ github.repository_owner }}
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: "Copy Javadoc to Location"
run: |
rm -rf docs
mkdir -vp docs
cp -vrf core/target/reports/apidocs/* docs/
cp -vrf .doc/JAVADOC-README.md docs/README.md
- name: "Generate the Javadoc sitemap"
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://CarmJos.github.io/EasyConfiguration
path-to-root: docs
- name: "Output stats"
run: |
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
- name: "Configure Git"
env:
DEPLOY_PRI: ${{secrets.DEPLOY_PRI}}
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
mkdir -p ~/.ssh/
echo "$DEPLOY_PRI" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --global user.name 'CarmJos'
git config --global user.email 'carm@carm.cc'
- name: "Commit documentations"
run: |
cd docs
git init
git remote add origin git@github.com:CarmJos/EasyConfiguration.git
git checkout -b gh-pages
git add -A
git commit -m "API Document generated."
- name: "Push javadocs"
run: |
cd docs
git push origin HEAD:gh-pages --force
central-deploy:
name: "Deploy Project (Central Repository)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: "Set up JDK"
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
+11 -3
View File
@@ -15,18 +15,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: "Set up JDK"
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'adopt'
cache: maven
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_TOKEN
- name: "Package"
run: mvn -B package --file pom.xml -Dgpg.skip
env:
MAVEN_USERNAME: ${{ github.repository_owner }}
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: "Target Stage"
run: mkdir staging && cp */target/*.jar staging
- name: "Upload artifact"
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: Artifact
path: staging
-1
View File
@@ -12,7 +12,6 @@
[![License](https://img.shields.io/github/license/CarmJos/MineConfiguration)](https://opensource.org/licenses/MIT)
[![workflow](https://github.com/CarmJos/MineConfiguration/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/CarmJos/MineConfiguration/actions/workflows/maven.yml)
![CodeSize](https://img.shields.io/github/languages/code-size/CarmJos/MineConfiguration)
![](https://visitor-badge.glitch.me/badge?page_id=MineConfiguration.readme)
EasyConfiguration for MineCraft!
+10 -10
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>mineconfiguration-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>3.0.1</version>
<version>3.1.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<properties>
@@ -23,29 +23,29 @@
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyconfiguration-core</artifactId>
<version>${deps.easyconfifuration.version}</version>
<artifactId>configured-core</artifactId>
<version>${deps.configured.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyconfiguration-feature-commentable</artifactId>
<version>${deps.easyconfifuration.version}</version>
<artifactId>configured-feature-commentable</artifactId>
<version>${deps.configured.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyconfiguration-feature-file</artifactId>
<version>${deps.easyconfifuration.version}</version>
<artifactId>configured-feature-file</artifactId>
<version>${deps.configured.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyconfiguration-feature-text</artifactId>
<version>${deps.easyconfifuration.version}</version>
<artifactId>configured-feature-text</artifactId>
<version>${deps.configured.version}</version>
<scope>compile</scope>
</dependency>
@@ -60,7 +60,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-chat</artifactId>
<version>1.20-R0.2-deprecated+build.19</version>
<version>1.21-R0.4</version>
<scope>provided</scope>
</dependency>
@@ -5,7 +5,7 @@
<parent>
<artifactId>mineconfiguration-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>3.0.1</version>
<version>3.1.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -14,12 +14,14 @@
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<deps.adventure.version>4.26.1</deps.adventure.version>
</properties>
<artifactId>mineconfiguration-velocity</artifactId>
<packaging>jar</packaging>
<name>MineConfiguration-Velocity</name>
<description>轻松(做)配置,适用于Velocity的版本,可用JSON与YAML格式。</description>
<name>MineConfiguration-Adventure</name>
<description>轻松(做)配置,适用于基于Adventure的平台(如Velocity、Paper),可用JSON与YAML格式。</description>
<dependencies>
@@ -32,18 +34,35 @@
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyconfiguration-yaml</artifactId>
<version>${deps.easyconfifuration.version}</version>
<artifactId>configured-yaml</artifactId>
<version>${deps.configured.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.velocitypowered</groupId>
<artifactId>velocity-api</artifactId>
<version>3.4.0-SNAPSHOT</version>
<scope>provided</scope>
<groupId>net.kyori</groupId>
<artifactId>adventure-api</artifactId>
<version>${deps.adventure.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-serializer-legacy</artifactId>
<version>${deps.adventure.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-serializer-plain</artifactId>
<version>${deps.adventure.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-text-minimessage</artifactId>
<version>${deps.adventure.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
@@ -1,4 +1,4 @@
package cc.carm.lib.mineconfiguration.velocity;
package cc.carm.lib.mineconfiguration.adventure;
import cc.carm.lib.configuration.Configuration;
import cc.carm.lib.configuration.source.ConfigurationHolder;
@@ -13,8 +13,8 @@ public class MineConfiguration extends AbstractConfiguration<ConfigurationHolder
public MineConfiguration(@NotNull File pluginDataFolder) {
super(
YAMLConfigFactory.from(pluginDataFolder, "config.yml").resourcePath("config.yml").build(),
YAMLConfigFactory.from(pluginDataFolder, "messages.yml").resourcePath("messages.yml").build()
YAMLConfigFactory.from(pluginDataFolder, "config.yml").build(),
YAMLConfigFactory.from(pluginDataFolder, "messages.yml").build()
);
}
@@ -1,4 +1,4 @@
package cc.carm.lib.mineconfiguration.velocity.value;
package cc.carm.lib.mineconfiguration.adventure.value;
import cc.carm.lib.configuration.value.ValueManifest;
import cc.carm.lib.configuration.value.text.ConfiguredText;
@@ -6,15 +6,23 @@ import cc.carm.lib.configuration.value.text.data.TextContents;
import cc.carm.lib.easyplugin.utils.ColorParser;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.ComponentSerializer;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
public class ConfiguredMessage extends ConfiguredText<Component, Audience> {
public static final LegacyComponentSerializer LEGACY_SERIALIZER = LegacyComponentSerializer.legacySection();
public static AtomicReference<ComponentSerializer<?, ?, String>> SERIALIZER = new AtomicReference<>(LEGACY_SERIALIZER);
@NotNull
public static ConfiguredMessage.Builder create() {
return new Builder();
}
@@ -23,7 +31,7 @@ public class ConfiguredMessage extends ConfiguredText<Component, Audience> {
return create().defaults(messages).build();
}
public ConfiguredMessage(@NotNull ValueManifest<TextContents> manifest,
public ConfiguredMessage(@NotNull ValueManifest<TextContents, TextContents> manifest,
@NotNull BiFunction<Audience, String, String> parser,
@NotNull BiFunction<Audience, String, Component> compiler,
@NotNull BiConsumer<Audience, List<Component>> dispatcher,
@@ -41,7 +49,7 @@ public class ConfiguredMessage extends ConfiguredText<Component, Audience> {
public Builder() {
super();
this.parser = (receiver, message) -> ColorParser.parse(message);
this.compiler = (receiver, message) -> Component.text(message);
this.compiler = (receiver, message) -> SERIALIZER.get().deserialize(message);
this.dispatcher = (receiver, message) -> message.forEach(receiver::sendMessage);
}
+9 -2
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>mineconfiguration-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>3.0.1</version>
<version>3.1.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>13.0.0</version>
<version>13.6.0</version>
<scope>compile</scope>
</dependency>
@@ -52,6 +52,13 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-chat</artifactId>
<version>1.21-R0.4</version>
<scope>provided</scope>
</dependency>
<!--PlaceholderAPI for general placeholder's support-->
<dependency>
<groupId>me.clip</groupId>
@@ -8,17 +8,25 @@ import cc.carm.lib.mineconfiguration.common.AbstractConfiguration;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.File;
public class MineConfiguration extends AbstractConfiguration<ConfigurationHolder<BukkitSource>> {
public static ConfigurationHolder<BukkitSource> from(File file, String source) {
public static ConfigurationHolder<BukkitSource> from(@NotNull File file,
@Nullable String source) {
return BukkitConfigFactory.from(file).resourcePath(source).build();
}
public static ConfigurationHolder<BukkitSource> from(Plugin plugin, String fileName) {
return from(new File(plugin.getDataFolder(), fileName), fileName);
public static ConfigurationHolder<BukkitSource> from(@NotNull Plugin plugin,
@NotNull String fileName) {
return from(plugin, fileName, null);
}
public static ConfigurationHolder<BukkitSource> from(@NotNull Plugin plugin,
@NotNull String fileName, @Nullable String resource) {
return from(new File(plugin.getDataFolder(), fileName), resource);
}
public MineConfiguration(@NotNull JavaPlugin plugin) {
@@ -6,19 +6,20 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.UnmodifiableView;
import java.util.Map;
import java.util.Set;
import java.util.*;
public class BukkitSection implements ConfigureSection {
protected final @NotNull BukkitSource source;
protected final @Nullable BukkitSection parent;
protected final @NotNull String path;
protected final @NotNull ConfigurationSection data;
public BukkitSection(@NotNull BukkitSource source, @Nullable BukkitSection parent,
@NotNull ConfigurationSection data) {
@NotNull String path, @NotNull ConfigurationSection data) {
this.source = source;
this.parent = parent;
this.path = path;
this.data = data;
}
@@ -31,6 +32,11 @@ public class BukkitSection implements ConfigureSection {
return this.parent;
}
@Override
public @NotNull String path() {
return this.path;
}
public @NotNull ConfigurationSection data() {
return this.data;
}
@@ -42,11 +48,55 @@ public class BukkitSection implements ConfigureSection {
@Override
public @NotNull @UnmodifiableView Map<String, Object> getValues(boolean deep) {
return data().getValues(deep);
Map<String, Object> original = data().getValues(deep);
// wrap all ConfigurationSection
for (Map.Entry<String, Object> entry : original.entrySet()) {
if (entry.getValue() instanceof ConfigurationSection) {
original.put(entry.getKey(), createSection(entry.getKey(), (ConfigurationSection) entry.getValue()));
}
}
return Collections.unmodifiableMap(original);
}
public Map<String, Object> toMap(ConfigurationSection section) {
Map<String, Object> map = new LinkedHashMap<>();
for (String key : section.getKeys(false)) {
Object value = section.get(key);
if (value instanceof ConfigurationSection) {
map.put(key, toMap((ConfigurationSection) value));
} else if (value instanceof BukkitSection) {
map.put(key, toMap(((BukkitSection) value).data()));
} else if (value instanceof List<?>) {
List<Object> list = new ArrayList<>();
for (Object o : (List<?>) value) {
if (o instanceof ConfigurationSection) {
list.add(toMap((ConfigurationSection) o));
} else if (o instanceof BukkitSection) {
list.add(toMap(((BukkitSection) o).data()));
} else {
list.add(o);
}
}
map.put(key, list);
} else {
map.put(key, value);
}
}
return map;
}
@Override
public @NotNull @UnmodifiableView Map<String, Object> asMap() {
return toMap(data());
}
@Override
public void set(@NotNull String path, @Nullable Object value) {
if (value instanceof BukkitSection) { // unwrap
value = ((BukkitSection) value).data();
}
data().set(path, value);
}
@@ -60,27 +110,24 @@ public class BukkitSection implements ConfigureSection {
Object value = get(path);
if (value instanceof ConfigureSection) {
return (ConfigureSection) value;
} else if (value instanceof ConfigurationSection) {
return new BukkitSection(source(), this, (ConfigurationSection) value);
}
return null;
}
@Override
public @NotNull ConfigureSection createSection(@NotNull Map<?, ?> data) {
throw new UnsupportedOperationException("BukkitSection does not support this operation");
public @NotNull BukkitSection createSection(@NotNull String path, @NotNull ConfigurationSection section) {
return new BukkitSection(source(), this, path, section);
}
@Override
public @NotNull ConfigureSection computeSection(@NotNull String path) {
return new BukkitSection(source(), this, data.createSection(path));
public @NotNull BukkitSection createSection(@NotNull String path, @NotNull Map<?, ?> data) {
return createSection(path, data().createSection(path, data));
}
@Override
public @Nullable Object get(@NotNull String path) {
Object value = data().get(path);
if (value instanceof ConfigurationSection) {
return new BukkitSection(source(), this, (ConfigurationSection) value);
if (value instanceof ConfigurationSection) { // wrap
return createSection(path, (ConfigurationSection) value);
}
return value;
}
@@ -38,7 +38,7 @@ public class BukkitSource extends FileConfigSource<BukkitSection, YamlConfigurat
}
@Override
protected BukkitSource self() {
protected @NotNull BukkitSource self() {
return this;
}
@@ -68,7 +68,7 @@ public class BukkitSource extends FileConfigSource<BukkitSection, YamlConfigurat
@Override
protected void onReload() throws Exception {
YamlConfiguration configuration = fileReader(YamlConfiguration::loadConfiguration);
this.rootSection = new BukkitSection(this, null, configuration);
this.rootSection = new BukkitSection(this, null, "", configuration);
}
@Override
@@ -38,7 +38,7 @@ public class ConfiguredMessage<M> extends ConfiguredText<M, CommandSender> {
return asString().defaults(messages).build();
}
public ConfiguredMessage(@NotNull ValueManifest<TextContents> manifest,
public ConfiguredMessage(@NotNull ValueManifest<TextContents, TextContents> manifest,
@NotNull BiFunction<CommandSender, String, String> parser,
@NotNull BiFunction<CommandSender, String, M> compiler,
@NotNull BiConsumer<CommandSender, List<M>> dispatcher,
@@ -46,8 +46,8 @@ public class ConfiguredMessage<M> extends ConfiguredText<M, CommandSender> {
super(manifest, parser, compiler, dispatcher, params);
}
public void sendActionBar(Player player, Object... values) {
ActionBar.sendActionBar(player, prepare(values).parseLine(player, (sender, message) -> message));
public void sendActionBar(@NotNull Player player, Object... values) {
ActionBar.sendActionBar(player, (String) prepare(values).parseLine(player, (sender, message) -> message));
}
public void print(Object... values) {
@@ -55,7 +55,7 @@ public class ConfiguredSound extends ConfiguredValue<SoundConfig> {
}
);
public ConfiguredSound(@NotNull ValueManifest<SoundConfig> manifest, @NotNull ValueAdapter<SoundConfig> adapter) {
public ConfiguredSound(@NotNull ValueManifest<SoundConfig, SoundConfig> manifest, @NotNull ValueAdapter<SoundConfig> adapter) {
super(manifest, adapter);
}
@@ -83,7 +83,7 @@ public class ConfiguredSound extends ConfiguredValue<SoundConfig> {
Optional.ofNullable(get()).ifPresent(s -> s.playAt(location));
}
public static class Builder extends AbstractConfigBuilder<SoundConfig, ConfiguredSound, ConfigurationHolder<?>, Builder> {
public static class Builder extends AbstractConfigBuilder<SoundConfig, SoundConfig, ConfiguredSound, ConfigurationHolder<?>, Builder> {
protected @NotNull ValueAdapter<SoundConfig> adapter = SOUND_ADAPTER;
@@ -55,7 +55,7 @@ public class ConfiguredTitle extends ConfiguredValue<TitleConfig> {
protected final @NotNull UnaryOperator<String> paramBuilder;
protected final @NotNull String[] params;
public ConfiguredTitle(@NotNull ValueManifest<TitleConfig> manifest, ValueAdapter<TitleConfig> adapter,
public ConfiguredTitle(@NotNull ValueManifest<TitleConfig, TitleConfig> manifest, ValueAdapter<TitleConfig> adapter,
@NotNull UnaryOperator<String> paramBuilder, @NotNull String[] params,
@NotNull ConfiguredTitle.TitleConsumer sendConsumer) {
super(manifest, adapter);
@@ -150,7 +150,7 @@ public class ConfiguredTitle extends ConfiguredValue<TitleConfig> {
}
public static class Builder extends AbstractConfigBuilder<TitleConfig, ConfiguredTitle, ConfigurationHolder<?>, Builder> {
public static class Builder extends AbstractConfigBuilder<TitleConfig, TitleConfig, ConfiguredTitle, ConfigurationHolder<?>, Builder> {
protected @NotNull ValueAdapter<TitleConfig> adapter = TITLE_ADAPTER;
protected @NotNull TitleConfig title = TitleConfig.of(null, null);
@@ -4,12 +4,12 @@ import cc.carm.lib.configuration.adapter.ValueAdapter;
import cc.carm.lib.configuration.adapter.ValueType;
import cc.carm.lib.configuration.builder.AbstractConfigBuilder;
import cc.carm.lib.configuration.source.ConfigurationHolder;
import cc.carm.lib.configuration.source.section.ConfigureSection;
import cc.carm.lib.configuration.value.ValueManifest;
import cc.carm.lib.configuration.value.standard.ConfiguredValue;
import cc.carm.lib.configuration.value.text.function.ContentHandler;
import cc.carm.lib.easyplugin.utils.ColorParser;
import com.cryptomorin.xseries.XItemStack;
import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemFlag;
@@ -19,8 +19,8 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.UnaryOperator;
public class ConfiguredItem extends ConfiguredValue<ItemStack> {
@@ -32,18 +32,18 @@ public class ConfiguredItem extends ConfiguredValue<ItemStack> {
public static final ValueAdapter<ItemStack> ITEM_ADAPTER = new ValueAdapter<>(ITEM_TYPE,
(holder, type, value) -> XItemStack.serialize(value),
(holder, type, value) -> {
ConfigurationSection section = (ConfigurationSection) value;
return XItemStack.deserialize(section);
ConfigureSection section = (ConfigureSection) value;
return XItemStack.deserialize(section.asMap());
}
);
protected final @NotNull UnaryOperator<String> paramBuilder;
protected final @NotNull BiFunction<Player, String, String> parser;
protected final @NotNull String[] params;
public ConfiguredItem(@NotNull ValueManifest<ItemStack> manifest, ValueAdapter<ItemStack> adapter,
@NotNull UnaryOperator<String> paramBuilder, @NotNull String[] params) {
public ConfiguredItem(@NotNull ValueManifest<ItemStack, ItemStack> manifest, ValueAdapter<ItemStack> adapter,
@NotNull BiFunction<Player, String, String> parser, @NotNull String[] params) {
super(manifest, adapter);
this.paramBuilder = paramBuilder;
this.parser = parser;
this.params = params;
}
@@ -82,7 +82,7 @@ public class ConfiguredItem extends ConfiguredValue<ItemStack> {
}
public @NotNull PreparedItem prepare(@NotNull Object... values) {
return PreparedItem.of(player -> get()).params(params).placeholders(values);
return PreparedItem.of(player -> get()).parser(parser).params(params).placeholders(values);
}
public void modifyItem(Consumer<ItemStack> modifier) {
@@ -114,11 +114,11 @@ public class ConfiguredItem extends ConfiguredValue<ItemStack> {
}
public static class Builder extends AbstractConfigBuilder<ItemStack, ConfiguredItem, ConfigurationHolder<?>, Builder> {
public static class Builder extends AbstractConfigBuilder<ItemStack, ItemStack, ConfiguredItem, ConfigurationHolder<?>, Builder> {
protected @Nullable ItemStack item = null;
protected @NotNull String[] params = new String[0];
protected @NotNull UnaryOperator<String> paramFormatter = ContentHandler.DEFAULT_PARAM_BUILDER;
protected @NotNull BiFunction<Player, String, String> parser = (player, message) -> ColorParser.parse(message);
public Builder() {
super(ConfigurationHolder.class, ITEM_TYPE);
@@ -186,8 +186,8 @@ public class ConfiguredItem extends ConfiguredValue<ItemStack> {
return defaultFlags(new LinkedHashSet<>(Arrays.asList(flags)));
}
public Builder formatParam(@NotNull UnaryOperator<String> paramFormatter) {
this.paramFormatter = paramFormatter;
public Builder parser(@NotNull BiFunction<Player, String, String> parser) {
this.parser = parser;
return self();
}
@@ -208,7 +208,7 @@ public class ConfiguredItem extends ConfiguredValue<ItemStack> {
@Override
public @NotNull ConfiguredItem build() {
return new ConfiguredItem(buildManifest(), ITEM_ADAPTER, paramFormatter, params);
return new ConfiguredItem(buildManifest(), ITEM_ADAPTER, parser, params);
}
}
@@ -20,13 +20,10 @@ import java.util.List;
import java.util.UUID;
import java.util.function.BiConsumer;
import java.util.function.Function;
import java.util.regex.Pattern;
public abstract class ItemModifier<S extends ItemModifier<S, R>, R>
extends ContentHandler<Player, S> {
public static final @NotNull Pattern LORE_INSERT_PATTERN = Pattern.compile("^(?:\\{(.*)})?#(.*)#(?:\\{(-?\\d+)(?:,(-?\\d+))?})?$");
protected final @NotNull Function<@NotNull Player, @Nullable ItemStack> itemProvider;
protected @NotNull BiConsumer<ItemStack, Player> itemConsumer;
@@ -22,7 +22,7 @@ public class PreparedItem extends ItemModifier<PreparedItem, ItemStack> {
super(itemProvider);
}
public @Nullable ItemStack get(Player player) {
public @Nullable ItemStack get(@Nullable Player player) {
@Nullable ItemStack item = itemProvider.apply(player);
if (item == null) return null;
@@ -40,7 +40,7 @@ public class ConfiguredNotify extends ConfiguredList<NotifyConfig> {
protected final @NotNull UnaryOperator<String> paramBuilder;
protected final @NotNull String[] params;
public ConfiguredNotify(@NotNull ValueManifest<List<NotifyConfig>> manifest,
public ConfiguredNotify(@NotNull ValueManifest<List<NotifyConfig>, NotifyConfig> manifest,
@NotNull ValueAdapter<NotifyConfig> adapter,
@NotNull UnaryOperator<String> paramBuilder, @NotNull String[] params) {
super(manifest, ArrayList::new, adapter);
@@ -65,7 +65,7 @@ public class ConfiguredNotify extends ConfiguredList<NotifyConfig> {
}
public static class NotifyBuilder extends AbstractConfigBuilder<List<NotifyConfig>, ConfiguredNotify, ConfigurationHolder<?>, NotifyBuilder> {
public static class NotifyBuilder extends AbstractConfigBuilder<List<NotifyConfig>, NotifyConfig, ConfiguredNotify, ConfigurationHolder<?>, NotifyBuilder> {
protected final @NotNull List<NotifyConfig> notifications = new ArrayList<>();
+4 -4
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>mineconfiguration-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>3.0.1</version>
<version>3.1.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -32,8 +32,8 @@
<dependency>
<groupId>cc.carm.lib</groupId>
<artifactId>easyconfiguration-yaml</artifactId>
<version>${deps.easyconfifuration.version}</version>
<artifactId>configured-yaml</artifactId>
<version>${deps.configured.version}</version>
<scope>compile</scope>
</dependency>
@@ -41,7 +41,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.20-R0.2</version>
<version>1.21-R0.4</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
@@ -30,8 +30,8 @@ public class MineConfiguration extends AbstractConfiguration<ConfigurationHolder
public MineConfiguration(@NotNull File pluginDataFolder) {
super(
YAMLConfigFactory.from(pluginDataFolder, "config.yml").resourcePath("config.yml").build(),
YAMLConfigFactory.from(pluginDataFolder, "messages.yml").resourcePath("messages.yml").build()
YAMLConfigFactory.from(pluginDataFolder, "config.yml").build(),
YAMLConfigFactory.from(pluginDataFolder, "messages.yml").build()
);
}
@@ -25,7 +25,7 @@ public class ConfiguredMessage extends ConfiguredText<BaseComponent[], CommandSe
return create().defaults(messages).build();
}
public ConfiguredMessage(@NotNull ValueManifest<TextContents> manifest,
public ConfiguredMessage(@NotNull ValueManifest<TextContents, TextContents> manifest,
@NotNull BiFunction<CommandSender, String, String> parser,
@NotNull BiFunction<CommandSender, String, BaseComponent[]> compiler,
@NotNull BiConsumer<CommandSender, List<BaseComponent[]>> dispatcher,
+15 -21
View File
@@ -10,20 +10,20 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<deps.easyconfifuration.version>4.0.6</deps.easyconfifuration.version>
<deps.yamlcommentwriter.version>1.2.0</deps.yamlcommentwriter.version>
<deps.easyplugin.version>1.5.12</deps.easyplugin.version>
<deps.configured.version>4.2.0</deps.configured.version>
<deps.yamlcommentwriter.version>1.2.1</deps.yamlcommentwriter.version>
<deps.easyplugin.version>1.5.13</deps.easyplugin.version>
</properties>
<groupId>cc.carm.lib</groupId>
<artifactId>mineconfiguration-parent</artifactId>
<version>3.0.1</version>
<version>3.1.4</version>
<packaging>pom</packaging>
<modules>
<module>common</module>
<module>platform/bukkit</module>
<module>platform/bungee</module>
<module>platform/velocity</module>
<module>platform/adventure</module>
</modules>
<name>MineConfiguration</name>
@@ -91,12 +91,6 @@
<url>https://mvn.lumine.io/repository/maven-public/</url>
</repository>
<repository>
<id>carm-repo</id>
<name>Carm's Repo</name>
<url>https://repo.carm.cc/repository/maven-public/</url>
</repository>
</repositories>
<distributionManagement>
@@ -115,7 +109,7 @@
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>26.0.2</version>
<version>26.1.0</version>
<scope>provided</scope>
</dependency>
@@ -128,7 +122,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.2</version>
<version>3.5.5</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
@@ -136,7 +130,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<version>3.2.8</version>
<executions>
<execution>
<id>sign-artifacts</id>
@@ -156,7 +150,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
<version>3.3.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
@@ -167,7 +161,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<version>3.15.0</version>
<configuration>
<source>${project.jdk.version}</source>
<target>${project.jdk.version}</target>
@@ -179,12 +173,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<version>3.5.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<version>3.4.0</version>
<executions>
<execution>
<phase>package</phase>
@@ -202,7 +196,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.11.2</version>
<version>3.12.0</version>
<configuration>
<classifier>javadoc</classifier>
<detectJavaApiLink>false</detectJavaApiLink>
@@ -231,7 +225,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<version>3.6.2</version>
<executions>
<execution>
<phase>package</phase>
@@ -278,7 +272,7 @@
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.7.0</version>
<version>0.10.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>