Skip to content

Release v2.4 #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 75 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
3b2dbd3
Add Quiz Challenge
DomiIRL Feb 10, 2022
3fe98ae
Fix some minor question translation issues
DomiIRL Feb 16, 2022
c44f2d6
Add /guess information
DomiIRL Feb 16, 2022
1a3ea51
implement Delay Damage Challenge
Rollocraft Jan 13, 2025
c01a9b7
Moved Time: Messages out of the Config
Rollocraft Jan 17, 2025
1cc781c
Refactored GENERIC_MAX_HEALT
Rollocraft Jan 17, 2025
be19ea1
Fixed all Errors with the upgrade to 1.21.4
Rollocraft Jan 17, 2025
a64028b
Added dynamic Language changing via Command
Rollocraft Jan 18, 2025
c97920c
Added A Setting to Change Language
Rollocraft Jan 18, 2025
ee06283
Merge branch 'Language-rework' into development
Rollocraft Jan 18, 2025
8930698
Merge remote-tracking branch 'refs/remotes/origin/new-feature/quiz-ch…
Rollocraft Mar 23, 2025
1b6ac70
Merged Quiz Challenge
Rollocraft Mar 28, 2025
708f8bb
Fixed Skulls
Rollocraft Mar 29, 2025
ca05eed
Removed a duped entry
Rollocraft Mar 29, 2025
9e5f884
Added a Message to remind the Player to have Permissions
Rollocraft Apr 10, 2025
4ea12c5
Merge branch 'development'
Rollocraft Apr 10, 2025
8a40cc2
Next Config Version
Rollocraft Apr 10, 2025
31970b6
Next Config Version
Rollocraft Apr 10, 2025
ddb998f
Removed the Hard Coded Messages
Rollocraft Apr 10, 2025
8502fe9
Update maven-build.yml to upload-artifacts@v4
Rollocraft Apr 10, 2025
5334af7
Merge branch 'master' into master
Rollocraft Apr 10, 2025
05cdc3b
Refactor bossbar messages to use getItemDisplayName for improved read…
Rollocraft Apr 11, 2025
5e6643a
Add MinecraftVersion enum and Version interface for version checking
Rollocraft Apr 11, 2025
9fd72be
Update health attribute retrieval for Minecraft version compatibility
Rollocraft Apr 11, 2025
29fed73
Tested
Rollocraft Apr 11, 2025
61808cf
fix: chunk deletion challenges move event
EinfachBeez Apr 12, 2025
d57582a
refactor: use 2-line spacing
EinfachBeez Apr 12, 2025
f100b7a
refactor: use lombok in LanguageLoader, remove deprecated JsonParser …
EinfachBeez Apr 12, 2025
edecdd4
feat: add /language as /setlang alias
EinfachBeez Apr 12, 2025
9d4ae5a
refactor: use https
EinfachBeez Apr 12, 2025
f381eac
Merge pull request #65 from Rollocraft/master
DomiIRL Apr 14, 2025
759214c
chore(deps): update dependency org.apache.maven.plugins:maven-shade-p…
coding-area-renovate[bot] Apr 14, 2025
be2c01f
chore(deps): update dependency org.apache.maven.plugins:maven-resourc…
coding-area-renovate[bot] Apr 14, 2025
742813a
chore(deps): update dependency org.apache.maven.plugins:maven-source-…
coding-area-renovate[bot] Apr 14, 2025
2b2707c
chore(deps): update dependency org.apache.maven.plugins:maven-compile…
coding-area-renovate[bot] Apr 14, 2025
26fb5ad
chore(deps): update jetbrains/qodana-action action to v4.2.5
coding-area-renovate[bot] Apr 14, 2025
63208a0
fix(deps): update dependency org.projectlombok:lombok to v1.18.38
coding-area-renovate[bot] Apr 14, 2025
bf88242
fix(deps): update dependency org.mongodb:mongodb-driver to v3.12.14
coding-area-renovate[bot] Apr 14, 2025
aa593bb
fix(deps): update dependency de.dytanic.cloudnet:cloudnet-driver to v…
coding-area-renovate[bot] Apr 14, 2025
fb36695
fix(deps): update dependency de.dytanic.cloudnet:cloudnet-bridge to v…
coding-area-renovate[bot] Apr 14, 2025
1369019
chore(deps): update actions/checkout action to v4
coding-area-renovate[bot] Apr 14, 2025
1b27d44
chore(deps): update actions/setup-java action to v4
coding-area-renovate[bot] Apr 14, 2025
95eef35
fix: Set Distribution for JDK Action
CronixZero Apr 15, 2025
dd97e18
fix: Use the right distribution name for setup JDK
CronixZero Apr 15, 2025
b18b7ba
chore(deps): update jetbrains/qodana-action action to v2024 (#79)
coding-area-renovate[bot] Apr 15, 2025
d5e671a
chore(deps): update actions/checkout action to v4
coding-area-renovate[bot] Apr 15, 2025
33ded1b
feat: AttributeWrapper
DomiIRL Apr 17, 2025
a210a38
feat: base64 skulls
DomiIRL Apr 18, 2025
c4b313e
style: remove author headers
DomiIRL Apr 18, 2025
b011262
Merge pull request #87 from coding-area-net/style/header
DomiIRL Apr 18, 2025
cd786bc
feat: move language setting to properties file
DomiIRL Apr 18, 2025
5d7ff59
fix: call migration
DomiIRL Apr 18, 2025
5d2b47a
Merge branch 'development' of https://github.com/coding-area-net/Chal…
DomiIRL Apr 18, 2025
51097ae
🤖 Apply quick-fixes by Qodana
qodana-bot Apr 18, 2025
b61db47
fix: remove default config options for language
DomiIRL Apr 18, 2025
75fc929
chore: bump version to 2.4
DomiIRL Apr 18, 2025
37e7871
Merge pull request #90 from coding-area-net/qodana/quick-fixes-5d2b47a
DomiIRL Apr 18, 2025
73c134b
style: reindent with 2 spaces
DomiIRL Apr 18, 2025
b8f2c91
style: reindent with 2 spaces
DomiIRL Apr 18, 2025
bf60b8a
fix: package
DomiIRL Apr 18, 2025
629b43e
fix: useParameter
DomiIRL Apr 18, 2025
e1961ff
feat: team provider
DomiIRL Apr 18, 2025
63e2476
fix: instantiate team provider
DomiIRL Apr 18, 2025
806040d
feat: team getter by id
DomiIRL Apr 18, 2025
881031d
feat: team members getters
DomiIRL Apr 18, 2025
cb52fd9
Update CustomTeam.java
DomiIRL Apr 18, 2025
ee5e253
Change to lowercase
Rollocraft Apr 18, 2025
2b6b1f2
refactor: implement anweisen/utilities
DomiIRL Apr 19, 2025
f0c4d9d
🤖 Apply quick-fixes by Qodana
qodana-bot Apr 19, 2025
aae796d
Merge pull request #102 from coding-area-net/qodana/quick-fixes-2b6b1f2
DomiIRL Apr 19, 2025
09b9655
🤖 Apply quick-fixes by Qodana
qodana-bot Apr 19, 2025
81212e9
Merge pull request #103 from coding-area-net/qodana/quick-fixes-aae796d
DomiIRL Apr 19, 2025
b8f93eb
Revert "🤖 Apply quick-fixes by Qodana"
DomiIRL Apr 21, 2025
b9d4bfb
Revert "🤖 Apply quick-fixes by Qodana"
DomiIRL Apr 21, 2025
b6cc144
Merge pull request #104 from coding-area-net/refactor/utilities
DomiIRL May 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Qodana
on:
workflow_dispatch:
pull_request:
push:

permissions:
contents: write
pull-requests: write
checks: write

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
push-fixes: pull-request
7 changes: 4 additions & 3 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 17
distribution: corretto
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B package --file pom.xml
- name: Capture build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: |
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/qodana.yml

This file was deleted.

20 changes: 20 additions & 0 deletions language/files/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"new-challenge": "§a§lNeu!",
"feature-disabled": "Diese Funktion ist derzeit §cdeaktiviert",
"challenge-disabled": "Diese Challenge ist derzeit §cdeaktiviert",
"stopped-message": "§8• §7Timer §c§lpaused §8•",
"count-up-message": "§8• §7Time: §a§l{0} §8•",
"count-down-message": "§8• §7Time: §c§l{0} §8•",
"timer-not-started": "Der Timer wurde noch §cnicht gestartet",
"timer-was-started": "Der Timer wurde §agestartet",
"timer-was-paused": "Der Timer wurde §cpausiert",
Expand Down Expand Up @@ -66,6 +69,12 @@
"§cEs fehlen keine Einstellungen in der Config.",
"§cDu kannst die Version ohne bedenken selbst auf §c§l{0} §cstellen."
],
"unsuported-language": [
"§cDiese Sprache §7(§e{0}§7) wird nicht unterstützt"
],
"not-op":[
"§7Um dieses Plugin zu nutzen, musst du die Berechtigung haben. Gib dir die Berechtigung in der Serverkonsole mit: /op [name]"
],
"join-message": "§e{0} §7hat den Server §abetreten",
"quit-message": "§e{0} §7hat den Server §cverlassen",
"timer-paused-message": [
Expand Down Expand Up @@ -523,6 +532,12 @@
"Der *maximale Radius*, in dem sich die",
"Positionen befinden können"
],
"item-language-setting": [
"§bSprache",
"Setze die *Sprache*"
],
"item-language-setting-german": "§fDeutsch",
"item-language-setting-english": "§fEnglish",
"item-difficulty-setting": [
"§aSchwierigkeit",
"Stellt die *Schwierigkeitsstufe* ein"
Expand Down Expand Up @@ -1238,6 +1253,11 @@
"*Chunks*, in denen sich *Spieler* befinden,",
"werden nach gegebener *Zeit* komplett *gelöscht*"
],
"item-delay-damage-description": [
"§4Verzögerter Schaden",
"Der *schaden* von allen *Spielern* ist",
"zusammenaddiert und wird nach einer bestimmten *Zeit* hinzugefügt."
],
"item-dragon-goal": [
"§5Enderdrache",
"Töte den *Enderdrachen* um zu gewinnen"
Expand Down
21 changes: 20 additions & 1 deletion language/files/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"new-challenge": "§a§lNew!",
"feature-disabled": "This function is currently §cdeactivated",
"challenge-disabled": "This challenge is currently §cdeactivated",
"stopped-message": "§8• §7Timer §c§lpaused §8•",
"count-up-message": "§8• §7Time: §a§l{0} §8•",
"count-down-message": "§8• §7Time: §c§l{0} §8•",
"timer-not-started": "The timer §chasn't been started",
"timer-was-started": "The timer has been §astarted",
"timer-was-paused": "The timer has been §cpaused",
Expand Down Expand Up @@ -66,6 +69,12 @@
"§cThere are no missing config settings.",
"§cYou can manually update it to §c§l{0}"
],
"unsuported-language": [
"§cThe language §7(§e{0}§7) is not supported"
],
"not-op":[
"§7To use this plugin you need to have permissions. Give yourself permissions in the Server Console with: /op [name]"
],
"join-message": "§e{0} §7has §ajoined §7the server",
"quit-message": "§e{0} §7has §cleft §7the server",
"timer-paused-message": [
Expand Down Expand Up @@ -315,7 +324,6 @@
"bossbar-dont-stop-running": "§8» §7Move in §8┃ §e{0}",
"bossbar-five-hundred-blocks": "§8» §fBlocks Walked §8┃ §7{0} §8/ §7{1}",
"bossbar-level-border": "§8» §7Border size §8┃ §7{0}",
"bossbar-level-border": "§8» §7Border size §8┃ §7{0}",
"bossbar-race-goal-info": "§8» §fGoal §8┃ §7X: {0} §8/ §7Z: {1} §8┃ §e{2} Blocks",
"bossbar-race-goal": "§8» §fGoal §8┃ §7X: {0} §8/ §7Z: {1}",
"bossbar-first-at-height-goal": "§8» §fGoal §8┃ §7Y: {0}",
Expand Down Expand Up @@ -522,6 +530,12 @@
"§aDifficulty",
"Sets the *Difficulty*"
],
"item-language-setting": [
"§bLanguage",
"Sets the *Language*"
],
"item-language-setting-german": "§fDeutsch",
"item-language-setting-english": "§fEnglish",
"item-one-life-setting": [
"§cOne Teamlife",
"*Everyone* dies when *one player dies*"
Expand Down Expand Up @@ -1218,6 +1232,11 @@
"*Chunks* that players are in *delete*",
"completely after the given *time*"
],
"item-delay-damage-description": [
"§4Damage delay",
"All *damage* from all *players* is",
"added up and dealt after *5 minutes*."
],
"item-dragon-goal": [
"§5Ender Dragon",
"Kill the *Ender Dragon* to win"
Expand Down
10 changes: 5 additions & 5 deletions mongo-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>3.12.8</version>
<version>3.12.14</version>
</dependency>

<dependency>
Expand All @@ -39,7 +39,7 @@
<version>3.0.2</version>
</dependency>

<dependency>

Check warning on line 42 in mongo-connector/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:org.xerial:sqlite-jdbc:3.36.0.2 * [CVE-2023-32697](https://www.mend.io/vulnerability-database/CVE-2023-32697?utm_source=JetBrains) 8.8 Code Injection Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check warning on line 42 in mongo-connector/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:mysql:mysql-connector-java:8.0.25 * [CVE-2023-22102](https://www.mend.io/vulnerability-database/CVE-2023-22102?utm_source=JetBrains) 8.3 Insufficient Information * [CVE-2022-21363](https://www.mend.io/vulnerability-database/CVE-2022-21363?utm_source=JetBrains) 6.6 Improper Handling of Insufficient Permissions or Privileges * [CVE-2021-2471](https://www.mend.io/vulnerability-database/CVE-2021-2471?utm_source=JetBrains) 5.9 Incorrect Authorization Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check warning on line 42 in mongo-connector/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:com.google.protobuf:protobuf-java:3.11.4 * [CVE-2022-3509](https://www.mend.io/vulnerability-database/CVE-2022-3509?utm_source=JetBrains) 7.5 Uncontrolled Resource Consumption ('Resource Exhaustion') * [CVE-2021-22569](https://www.mend.io/vulnerability-database/CVE-2021-22569?utm_source=JetBrains) 7.5 Incorrect Behavior Order * [CVE-2024-7254](https://www.mend.io/vulnerability-database/CVE-2024-7254?utm_source=JetBrains) 7.5 Input Validation * [CVE-2022-3171](https://www.mend.io/vulnerability-database/CVE-2022-3171?utm_source=JetBrains) 4.3 Input Validation Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)
<groupId>net.codingarea.challenges</groupId>
<artifactId>plugin</artifactId>
<version>${project.version}</version>
Expand Down Expand Up @@ -79,7 +79,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.0</version>
<version>3.14.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand All @@ -90,7 +90,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -105,7 +105,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>3.6.0</version>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -130,7 +130,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.1</version>
<executions>
<execution>
<id>copy-license</id>
Expand Down
16 changes: 8 additions & 8 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<artifactId>bukkit-utils</artifactId>
<version>${utilities.version}</version>
</dependency>
<dependency>

Check failure on line 35 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:org.apache.logging.log4j:log4j-core:2.0-beta9 * [CVE-2021-44228](https://www.mend.io/vulnerability-database/CVE-2021-44228?utm_source=JetBrains) 10.0 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') * [CVE-2021-45046](https://www.mend.io/vulnerability-database/CVE-2021-45046?utm_source=JetBrains) 9.0 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') * [CVE-2021-44832](https://www.mend.io/vulnerability-database/CVE-2021-44832?utm_source=JetBrains) 6.6 Injection * [CVE-2021-45105](https://www.mend.io/vulnerability-database/CVE-2021-45105?utm_source=JetBrains) 5.9 Uncontrolled Recursion * [CVE-2020-9488](https://www.mend.io/vulnerability-database/CVE-2020-9488?utm_source=JetBrains) 3.7 Improper Certificate Validation Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check notice on line 35 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:commons-io:commons-io:2.4 * [CVE-2021-29425](https://www.mend.io/vulnerability-database/CVE-2021-29425?utm_source=JetBrains) 4.8 Path Traversal * [CVE-2024-47554](https://www.mend.io/vulnerability-database/CVE-2024-47554?utm_source=JetBrains) 4.3 Uncontrolled Resource Consumption ('Resource Exhaustion') Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check notice on line 35 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:commons-codec:commons-codec:1.9 * [WS-2019-0379](https://www.mend.io/vulnerability-database/WS-2019-0379?utm_source=JetBrains) 6.5 Input Validation Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.21</version>
Expand All @@ -40,16 +40,16 @@
</dependency>

<!-- Cloud Dependencies -->
<dependency>

Check notice on line 43 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:io.netty:netty-handler:4.1.73.Final * [CVE-2023-34462](https://www.mend.io/vulnerability-database/CVE-2023-34462?utm_source=JetBrains) 6.5 Allocation of Resources Without Limits or Throttling Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check notice on line 43 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:io.netty:netty-common:4.1.73.Final * [CVE-2022-24823](https://www.mend.io/vulnerability-database/CVE-2022-24823?utm_source=JetBrains) 5.5 Exposure of Resource to Wrong Sphere * [CVE-2024-47535](https://www.mend.io/vulnerability-database/CVE-2024-47535?utm_source=JetBrains) 5.5 Uncontrolled Resource Consumption ('Resource Exhaustion') * [CVE-2025-25193](https://www.mend.io/vulnerability-database/CVE-2025-25193?utm_source=JetBrains) 5.5 Denial of Service attack on windows app using Netty Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check notice on line 43 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:io.netty:netty-codec-http:4.1.73.Final * [CVE-2024-29025](https://www.mend.io/vulnerability-database/CVE-2024-29025?utm_source=JetBrains) 5.3 Allocation of Resources Without Limits or Throttling Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)
<groupId>de.dytanic.cloudnet</groupId>
<artifactId>cloudnet-driver</artifactId>
<version>3.3.0-RELEASE</version>
<version>3.4.5-RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.dytanic.cloudnet</groupId>
<artifactId>cloudnet-bridge</artifactId>
<version>3.3.0-RELEASE</version>
<version>3.4.5-RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -65,7 +65,7 @@
<artifactId>database-api</artifactId>
<version>${utilities.version}</version>
</dependency>
<dependency>

Check warning on line 68 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:com.google.protobuf:protobuf-java:3.11.4 * [CVE-2022-3509](https://www.mend.io/vulnerability-database/CVE-2022-3509?utm_source=JetBrains) 7.5 Uncontrolled Resource Consumption ('Resource Exhaustion') * [CVE-2021-22569](https://www.mend.io/vulnerability-database/CVE-2021-22569?utm_source=JetBrains) 7.5 Incorrect Behavior Order * [CVE-2024-7254](https://www.mend.io/vulnerability-database/CVE-2024-7254?utm_source=JetBrains) 7.5 Input Validation * [CVE-2022-3171](https://www.mend.io/vulnerability-database/CVE-2022-3171?utm_source=JetBrains) 4.3 Input Validation Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check warning on line 68 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:mysql:mysql-connector-java:8.0.25 * [CVE-2023-22102](https://www.mend.io/vulnerability-database/CVE-2023-22102?utm_source=JetBrains) 8.3 Insufficient Information * [CVE-2022-21363](https://www.mend.io/vulnerability-database/CVE-2022-21363?utm_source=JetBrains) 6.6 Improper Handling of Insufficient Permissions or Privileges * [CVE-2021-2471](https://www.mend.io/vulnerability-database/CVE-2021-2471?utm_source=JetBrains) 5.9 Incorrect Authorization Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)

Check warning on line 68 in plugin/pom.xml

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Vulnerable declared dependency

Provides transitive vulnerable dependency maven:org.xerial:sqlite-jdbc:3.36.0.2 * [CVE-2023-32697](https://www.mend.io/vulnerability-database/CVE-2023-32697?utm_source=JetBrains) 8.8 Code Injection Results powered by [Mend.io](https://www.mend.io/?utm_source=JetBrains)
<groupId>com.github.anweisen.Utility</groupId>
<artifactId>database-sql</artifactId>
<version>${utilities.version}</version>
Expand All @@ -75,7 +75,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
<version>1.18.38</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -127,7 +127,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.0</version>
<version>3.14.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand All @@ -136,7 +136,7 @@
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
<version>1.18.38</version>
</path>
</annotationProcessorPaths>
</configuration>
Expand All @@ -146,7 +146,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -161,7 +161,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>3.6.0</version>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -188,7 +188,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.1</version>
<executions>
<execution>
<id>copy-license</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import javax.annotation.Nonnull;

/**
* @author anweisen | https://github.com/anweisen

Check warning on line 29 in plugin/src/main/java/net/codingarea/challenges/plugin/Challenges.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text

Check warning on line 29 in plugin/src/main/java/net/codingarea/challenges/plugin/Challenges.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text
* @author KxmischesDomi | https://github.com/kxmischesdomi

Check warning on line 30 in plugin/src/main/java/net/codingarea/challenges/plugin/Challenges.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text

Check warning on line 30 in plugin/src/main/java/net/codingarea/challenges/plugin/Challenges.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text
* @since 1.0
*/
@Getter
Expand All @@ -53,7 +53,7 @@
private ChallengeTimer challengeTimer;
private LoaderRegistry loaderRegistry;
private MetricsLoader metricsLoader;
private GameWorldStorage gameWorldStorage;
private GameWorldStorage gameWorldStorage;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing

private GeneratorWorldPortalManager generatorWorldPortalManager;

@Nonnull
Expand Down Expand Up @@ -174,6 +174,7 @@
registerCommand(new ForwardingCommand("time set midnight"), "midnight");
registerCommand(new ResultCommand(), "result");
registerCommand(new SkipTimerCommand(), "skiptimer");
registerCommand(new LanguageCommand(), "setlanguage");
registerListenerCommand(new GodModeCommand(), "godmode");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.codingarea.challenges.plugin.challenges.custom.settings.action.EntityTargetAction;
import net.codingarea.challenges.plugin.challenges.type.helper.SubSettingsHelper;
import net.codingarea.challenges.plugin.utils.bukkit.misc.Version.MinecraftVersion;
import net.codingarea.challenges.plugin.utils.item.DefaultItem;
import net.codingarea.challenges.plugin.utils.item.ItemBuilder;
import net.codingarea.challenges.plugin.utils.misc.MinecraftNameWrapper;
Expand All @@ -14,7 +15,7 @@
import java.util.Map;

/**
* @author KxmischesDomi | https://github.com/kxmischesdomi

Check warning on line 18 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/custom/settings/action/impl/HealEntityAction.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text

Check warning on line 18 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/custom/settings/action/impl/HealEntityAction.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text
* @since 2.1.0
*/
public class HealEntityAction extends EntityTargetAction {
Expand All @@ -35,7 +36,13 @@
int amount = Integer.parseInt(subActions.get("amount")[0]);
if (entity instanceof LivingEntity) {
LivingEntity livingEntity = (LivingEntity) entity;
AttributeInstance attribute = livingEntity.getAttribute(Attribute.GENERIC_MAX_HEALTH);
AttributeInstance attribute;
if (MinecraftVersion.current().isNewerOrEqualThan(MinecraftVersion.V1_21_2)) {
attribute = livingEntity.getAttribute(Attribute.valueOf("MAX_HEALTH"));

Check warning on line 41 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/custom/settings/action/impl/HealEntityAction.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3

Check warning on line 41 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/custom/settings/action/impl/HealEntityAction.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3
} else {
attribute = livingEntity.getAttribute(Attribute.valueOf("GENERIC_MAX_HEALTH"));

Check warning on line 43 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/custom/settings/action/impl/HealEntityAction.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3

Check warning on line 43 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/custom/settings/action/impl/HealEntityAction.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3
}

if (attribute == null) return;
double newHealth = Math.min(livingEntity.getHealth() + amount,
attribute.getBaseValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.codingarea.challenges.plugin.content.Prefix;
import net.codingarea.challenges.plugin.management.menu.MenuType;
import net.codingarea.challenges.plugin.management.scheduler.task.ScheduledTask;
import net.codingarea.challenges.plugin.utils.bukkit.misc.Version.MinecraftVersion;
import net.codingarea.challenges.plugin.utils.item.ItemBuilder;
import net.codingarea.challenges.plugin.utils.misc.NameHelper;
import org.bukkit.Bukkit;
Expand All @@ -26,7 +27,7 @@
import javax.annotation.Nonnull;

/**
* @author KxmischesDomi | https://github.com/kxmischesdomi

Check warning on line 30 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text

Check warning on line 30 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Link specified as plain text

Link specified as plain text
* @since 2.0
*/
@Since("2.0")
Expand All @@ -46,8 +47,13 @@
bossbar.setProgress(1 - ((float) currentTime / maxTime));
});
bossbar.show();
Bukkit.getOnlinePlayers().forEach(player -> {

Check notice on line 50 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Duplicated code fragment

Duplicated code

Check notice on line 50 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Duplicated code fragment

Duplicated code
AttributeInstance attribute = player.getAttribute(Attribute.GENERIC_MAX_HEALTH);
AttributeInstance attribute;
if (MinecraftVersion.current().isNewerOrEqualThan(MinecraftVersion.V1_21_2)) {
attribute = player.getAttribute(Attribute.valueOf("MAX_HEALTH"));

Check warning on line 53 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3

Check warning on line 53 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3
} else {
attribute = player.getAttribute(Attribute.valueOf("GENERIC_MAX_HEALTH"));

Check warning on line 55 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3

Check warning on line 55 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3
}
if (attribute == null) return;
attribute.setBaseValue(0);
});
Expand All @@ -73,7 +79,12 @@
@ScheduledTask(ticks = 20, async = false)
public void onSecond() {
broadcast(player -> {
AttributeInstance attribute = player.getAttribute(Attribute.GENERIC_MAX_HEALTH);
AttributeInstance attribute;
if (MinecraftVersion.current().isNewerOrEqualThan(MinecraftVersion.V1_21_2)) {
attribute = player.getAttribute(Attribute.valueOf("MAX_HEALTH"));

Check warning on line 84 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3

Check warning on line 84 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3
} else {
attribute = player.getAttribute(Attribute.valueOf("GENERIC_MAX_HEALTH"));

Check warning on line 86 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3

Check warning on line 86 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'valueOf(java.lang.String)' is deprecated since version 1.21.3
}
if (attribute == null) return;
attribute.setBaseValue(0);
});
Expand Down Expand Up @@ -109,7 +120,7 @@
if (!shouldExecuteEffect()) return;
Player player = (Player) event.getEntity();
if (ignorePlayer(player)) return;
kill(player);

Check warning on line 123 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'kill(org.bukkit.entity.Player)' is deprecated

Check warning on line 123 in plugin/src/main/java/net/codingarea/challenges/plugin/challenges/implementation/challenge/ZeroHeartsChallenge.java

View workflow job for this annotation

GitHub Actions / Qodana for JVM

Deprecated API usage

'kill(org.bukkit.entity.Player)' is deprecated
Message.forName("zero-hearts-failed").broadcast(Prefix.CHALLENGES, NameHelper.getName(player));
}

Expand Down
Loading
Loading