diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5b90207 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,56 @@ +name: Publish to Modrinth + +on: + release: + types: + - published + +permissions: + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 25 + + - name: Determine previous release tag + id: prev_tag + run: | + PREV=$(git describe --tags --abbrev=0 "${{ github.event.release.tag_name }}^" 2>/dev/null || true) + echo "tag=$PREV" >> "$GITHUB_OUTPUT" + + - name: Detect changed modules + if: steps.prev_tag.outputs.tag != '' + id: filter + uses: dorny/paths-filter@v3 + with: + base: ${{ steps.prev_tag.outputs.tag }} + filters: | + paper: + - 'paper/**' + - 'common/**' + - 'api/**' + - 'gradle/libs.versions.toml' + - 'build.gradle.kts' + - 'settings.gradle.kts' + + - name: Build all modules + run: ./gradlew build + + - name: Publish Paper + if: steps.prev_tag.outputs.tag == '' || steps.filter.outputs.paper == 'true' + env: + MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + CHANGELOG: ${{ github.event.release.body }} + run: ./gradlew :paper:modrinth \ No newline at end of file diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml new file mode 100644 index 0000000..d495786 --- /dev/null +++ b/.github/workflows/version-check.yml @@ -0,0 +1,73 @@ +name: Verify version + +on: + pull_request: + branches: + - master + +permissions: + contents: read + +jobs: + version-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Extract versions + id: versions + run: | + set -euo pipefail + extract() { + grep -E '^[[:space:]]*version[[:space:]]*=' "$1" | head -1 \ + | sed -E 's/.*"([^"]+)".*/\1/' + } + + PR_VERSION=$(extract build.gradle.kts) + if [ -z "$PR_VERSION" ]; then + echo "::error file=build.gradle.kts::Could not extract version from build.gradle.kts on PR branch." + exit 1 + fi + + BASE_FILE=$(git show "origin/${{ github.base_ref }}:build.gradle.kts") + BASE_VERSION=$(echo "$BASE_FILE" | grep -E '^[[:space:]]*version[[:space:]]*=' | head -1 \ + | sed -E 's/.*"([^"]+)".*/\1/') + if [ -z "$BASE_VERSION" ]; then + echo "::error::Could not extract version from build.gradle.kts on origin/${{ github.base_ref }}." + exit 1 + fi + + echo "pr=$PR_VERSION" >> "$GITHUB_OUTPUT" + echo "base=$BASE_VERSION" >> "$GITHUB_OUTPUT" + echo "PR: $PR_VERSION" + echo "Base: $BASE_VERSION" + + - name: Reject 'dev' in version + run: | + PR='${{ steps.versions.outputs.pr }}' + if echo "$PR" | grep -qi 'dev'; then + echo "::error file=build.gradle.kts::Version '$PR' contains 'dev' — must not be merged." + exit 1 + fi + + - name: Verify version is not lower + run: | + set -euo pipefail + PR='${{ steps.versions.outputs.pr }}' + BASE='${{ steps.versions.outputs.base }}' + + if [ "$PR" = "$BASE" ]; then + echo "Version unchanged ($BASE) — OK." + exit 0 + fi + + LOWER=$(printf '%s\n%s\n' "$PR" "$BASE" | sort -V | head -1) + if [ "$LOWER" != "$BASE" ]; then + echo "::error file=build.gradle.kts::PR version ($PR) is lower than base version ($BASE). Version must only go up." + exit 1 + fi + + echo "PR version $PR > base version $BASE — OK." \ No newline at end of file diff --git a/api/build.gradle.kts b/api/build.gradle.kts index 856b8d5..4103326 100644 --- a/api/build.gradle.kts +++ b/api/build.gradle.kts @@ -1,20 +1,24 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ plugins { id("java") } -group = "xyz.mayahive.customdaytime" -version = "2.0.0-SNAPSHOT" - -repositories { - mavenCentral() -} - val javaTarget = 21 // Sponge targets a minimum of Java 21 java { toolchain.languageVersion.set(JavaLanguageVersion.of(javaTarget)) diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/CustomDaytime.java b/api/src/main/java/xyz/mayahive/customdaytime/api/CustomDaytime.java index bd24a09..752b481 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/CustomDaytime.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/CustomDaytime.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api; diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/model/PlatformType.java b/api/src/main/java/xyz/mayahive/customdaytime/api/model/PlatformType.java index cc3dff8..d239990 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/model/PlatformType.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/model/PlatformType.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api.model; diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/model/WorldKey.java b/api/src/main/java/xyz/mayahive/customdaytime/api/model/WorldKey.java index 15c30c1..335b73c 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/model/WorldKey.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/model/WorldKey.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api.model; diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/Platform.java b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/Platform.java index 3c4725a..31d5075 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/Platform.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/Platform.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api.platform; diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformLogger.java b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformLogger.java index 16442f5..9600115 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformLogger.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformLogger.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api.platform; diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformScheduler.java b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformScheduler.java index 038bf2e..872ec7f 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformScheduler.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformScheduler.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api.platform; diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformTask.java b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformTask.java index 6d902c8..7e823d1 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformTask.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformTask.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api.platform; diff --git a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformWorld.java b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformWorld.java index c7ad702..acffceb 100644 --- a/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformWorld.java +++ b/api/src/main/java/xyz/mayahive/customdaytime/api/platform/PlatformWorld.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.api.platform; diff --git a/build.gradle.kts b/build.gradle.kts index 2ef89f1..8db8d68 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,18 +1,24 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ subprojects { group = "xyz.mayahive.customdaytime" - version = "2.1.0" - - repositories { - mavenCentral() - maven("https://repo.papermc.io/repository/maven-public/") - } + version = "2.1.1" if (name != "api") { plugins.withId("java") { diff --git a/common/build.gradle.kts b/common/build.gradle.kts index e293b6c..e50e13e 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -1,23 +1,29 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ plugins { - id("java") id("java-library") } -repositories { - mavenCentral() -} - dependencies { api(project(":api")) - implementation(libs.configurate.hocon) - implementation(libs.gson) + compileOnlyApi(libs.configurate.hocon) + compileOnlyApi(libs.gson) } val javaTarget = 21 // Sponge targets a minimum of Java 21 diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/bootstrap/AbstractBootstrap.java b/common/src/main/java/xyz/mayahive/customdaytime/common/bootstrap/AbstractBootstrap.java index abd2700..234041d 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/bootstrap/AbstractBootstrap.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/bootstrap/AbstractBootstrap.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.bootstrap; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/cache/WorldCache.java b/common/src/main/java/xyz/mayahive/customdaytime/common/cache/WorldCache.java index 6786d2c..98158ef 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/cache/WorldCache.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/cache/WorldCache.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.cache; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/context/CustomDaytimeContext.java b/common/src/main/java/xyz/mayahive/customdaytime/common/context/CustomDaytimeContext.java index f27590b..d8fc5a5 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/context/CustomDaytimeContext.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/context/CustomDaytimeContext.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.context; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/Event.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/Event.java index 6b6e3c3..7cbfd43 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/Event.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/Event.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventBus.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventBus.java index 51e1470..1929897 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventBus.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventBus.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventListener.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventListener.java index c031b49..6d7f608 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventListener.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/EventListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/TimeSkipListener.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/TimeSkipListener.java index 1e42333..59f8bfa 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/TimeSkipListener.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/TimeSkipListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.listener; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldActivityListener.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldActivityListener.java index 8967f47..3737d9e 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldActivityListener.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldActivityListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.listener; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldLifeCycleListener.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldLifeCycleListener.java index 2e6430f..47b1c78 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldLifeCycleListener.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/listener/WorldLifeCycleListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.listener; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipCause.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipCause.java index aef838f..84d8a12 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipCause.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipCause.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.type; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipEvent.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipEvent.java index 44376a4..f2060fa 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipEvent.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/TimeSkipEvent.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.type; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldLoadEvent.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldLoadEvent.java index 2ad474a..ff33e36 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldLoadEvent.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldLoadEvent.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.type; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldPlayerCountChangeEvent.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldPlayerCountChangeEvent.java index d45df32..5a8b496 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldPlayerCountChangeEvent.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldPlayerCountChangeEvent.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.type; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldSleepingPlayerCountChangeEvent.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldSleepingPlayerCountChangeEvent.java index a75c61b..06a3fbb 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldSleepingPlayerCountChangeEvent.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldSleepingPlayerCountChangeEvent.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.type; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldUnloadEvent.java b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldUnloadEvent.java index cf91383..6ed1b87 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldUnloadEvent.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/event/type/WorldUnloadEvent.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.event.type; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/registry/CommonEventRegistry.java b/common/src/main/java/xyz/mayahive/customdaytime/common/registry/CommonEventRegistry.java index 12b05e3..fb0f633 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/registry/CommonEventRegistry.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/registry/CommonEventRegistry.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.registry; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/service/CommonInitializerService.java b/common/src/main/java/xyz/mayahive/customdaytime/common/service/CommonInitializerService.java index 1747217..9de48c5 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/service/CommonInitializerService.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/service/CommonInitializerService.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.service; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/service/ConfigService.java b/common/src/main/java/xyz/mayahive/customdaytime/common/service/ConfigService.java index cdabaeb..9a1c446 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/service/ConfigService.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/service/ConfigService.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.service; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/service/DebugService.java b/common/src/main/java/xyz/mayahive/customdaytime/common/service/DebugService.java index 6efbb1b..c1d75fc 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/service/DebugService.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/service/DebugService.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.service; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/service/UpdateCheckerService.java b/common/src/main/java/xyz/mayahive/customdaytime/common/service/UpdateCheckerService.java index 0dd3b6e..fa2fd7e 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/service/UpdateCheckerService.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/service/UpdateCheckerService.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.service; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/service/WorldInitializationService.java b/common/src/main/java/xyz/mayahive/customdaytime/common/service/WorldInitializationService.java index 5f9653c..4247670 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/service/WorldInitializationService.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/service/WorldInitializationService.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.service; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeController.java b/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeController.java index f01a194..3ff5bbb 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeController.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeController.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.world; diff --git a/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeManager.java b/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeManager.java index cc6b78a..e574173 100644 --- a/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeManager.java +++ b/common/src/main/java/xyz/mayahive/customdaytime/common/world/WorldTimeManager.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.common.world; diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2345307..eac6ca7 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,6 +13,7 @@ lombok = "1.18.42" configurate = "4.2.0" gson = "2.13.2" bstats = "3.1.0" +minotaur = "2.+" # --- Build & Tooling --- shadow = "9.3.1" @@ -33,4 +34,5 @@ shadow = {id = "com.gradleup.shadow", version.ref = "shadow"} run-paper = {id = "xyz.jpenilla.run-paper", version.ref = "run-paper"} plugin-yml = {id = "de.eldoria.plugin-yml.paper", version.ref = "plugin-yml"} spongegradle = {id = "org.spongepowered.gradle.plugin", version.ref = "spongegradle"} -spongevanilla = {id = "org.spongepowered.gradle.vanilla", version.ref = "spongevanilla"} \ No newline at end of file +spongevanilla = {id = "org.spongepowered.gradle.vanilla", version.ref = "spongevanilla"} +minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index dbc3ce4..5280cdc 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,3 +1,20 @@ +# +# Copyright (c) 2026 Seedim +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip diff --git a/gradlew b/gradlew index 0262dcb..7123723 100644 --- a/gradlew +++ b/gradlew @@ -1,21 +1,20 @@ #!/bin/sh # -# Copyright © 2015 the original authors. +# Copyright (c) 2026 Seedim # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. # -# https://www.apache.org/licenses/LICENSE-2.0 +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# SPDX-License-Identifier: Apache-2.0 +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . # ############################################################################## diff --git a/paper/build.gradle.kts b/paper/build.gradle.kts index dfcfcce..8da379b 100644 --- a/paper/build.gradle.kts +++ b/paper/build.gradle.kts @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ plugins { @@ -9,22 +20,17 @@ plugins { alias(libs.plugins.run.paper) alias(libs.plugins.shadow) alias(libs.plugins.plugin.yml) -} - -repositories { - mavenCentral() - maven { - name = "papermc-repo" - url = uri("https://repo.papermc.io/repository/maven-public/") - } + alias(libs.plugins.minotaur) } dependencies { implementation(project(":common")) implementation(libs.bstats.bukkit) + implementation(libs.configurate.hocon) - compileOnly(libs.paper.api.get()) + compileOnly(libs.paper.api) + compileOnly(libs.gson) } tasks { @@ -70,13 +76,36 @@ tasks { dependsOn(shadowJar) } + jar { + enabled = false + } + shadowJar { + archiveBaseName.set("CustomDaytimePaper") + archiveClassifier.set("") relocate("org.bstats", "xyz.mayahive.libs.bstats") relocate("org.spongepowered.configurate", "xyz.mayahive.customdaytime.lib.configurate") relocate("net.kyori.option", "xyz.mayahive.customdaytime.lib.kyori.option") + relocate("io.leangen.geantyref", "xyz.mayahive.customdaytime.lib.geantyref") } } +modrinth { + token.set(System.getenv("MODRINTH_TOKEN")) + projectId.set("C7YliNqw") + versionNumber.set(version.toString()) + versionType.set("release") + uploadFile.set(tasks.shadowJar) + gameVersions.addAll("26.1", "26.1.1", "26.1.2") + loaders.addAll("paper", "folia", "purpur") + syncBodyFrom = rootProject.file("README.md").readText() + changelog.set(System.getenv("CHANGELOG").takeUnless { it.isNullOrBlank() } ?: "No changelog provided") +} + +tasks.modrinth { + dependsOn(tasks.modrinthSyncBody) +} + paper { name = "CustomDaytime" author = "Seedim" diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/CustomDaytimePaper.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/CustomDaytimePaper.java index 2d313f0..d7846fe 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/CustomDaytimePaper.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/CustomDaytimePaper.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/BedActivityListener.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/BedActivityListener.java index 6258da2..587cd69 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/BedActivityListener.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/BedActivityListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.listener; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/TimeSkipListener.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/TimeSkipListener.java index a416a24..e262b45 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/TimeSkipListener.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/TimeSkipListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.listener; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldActivityListener.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldActivityListener.java index d0cbe6a..45a8b25 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldActivityListener.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldActivityListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.listener; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldListener.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldListener.java index f7ee96d..afde0b2 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldListener.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/listener/WorldListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.listener; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperLogger.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperLogger.java index f6cd8f4..be7f6d5 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperLogger.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperLogger.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.platform; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperPlatform.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperPlatform.java index 8acb8dd..b2553fb 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperPlatform.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperPlatform.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.platform; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperScheduler.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperScheduler.java index 41f7591..e23cfd4 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperScheduler.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperScheduler.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.platform; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperTask.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperTask.java index c1b901a..6682d19 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperTask.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperTask.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.platform; diff --git a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperWorld.java b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperWorld.java index 3699348..77cb9cf 100644 --- a/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperWorld.java +++ b/paper/src/main/java/xyz/mayahive/customdaytime/paper/platform/PaperWorld.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.paper.platform; diff --git a/settings.gradle.kts b/settings.gradle.kts index 0937c90..9366e79 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ pluginManagement { @@ -9,6 +20,21 @@ pluginManagement { maven { url = uri("https://repo.spongepowered.org/repository/maven-public/") } + gradlePluginPortal() + } +} + +@Suppress("UnstableApiUsage") +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) + repositories { + mavenCentral() + maven("https://repo.papermc.io/repository/maven-public/") { + name = "papermc-repo" + } + maven("https://repo.spongepowered.org/repository/maven-public/") { + name = "spongepowered-repo" + } } } diff --git a/sponge/build.gradle.kts b/sponge/build.gradle.kts index 9e29095..604f632 100644 --- a/sponge/build.gradle.kts +++ b/sponge/build.gradle.kts @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ import org.spongepowered.gradle.plugin.config.PluginLoaders @@ -14,15 +25,11 @@ plugins { alias(libs.plugins.shadow) } -repositories { - mavenCentral() - maven("https://repo.spongepowered.org/maven/") { - name = "spongepowered-repo" - } -} - dependencies { api(project(":common")) + + compileOnly(libs.configurate.hocon) + compileOnly(libs.gson) } sponge { @@ -71,18 +78,8 @@ tasks.withType().configureEach { isPreserveFileTimestamps = false } -tasks { - assemble { - dependsOn(shadowJar) - } - - shadowJar { - dependencies { - exclude(dependency("io.leangen.geantyref:.*")) - exclude(dependency("net.kyori:.*")) - exclude(dependency("org.spongepowered:.*")) - } - } +tasks.assemble { + dependsOn(tasks.shadowJar) } minecraft { diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/CustomDaytimeSponge.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/CustomDaytimeSponge.java index 0f6cd64..88d217d 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/CustomDaytimeSponge.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/CustomDaytimeSponge.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/SleepingListener.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/SleepingListener.java index 599fbd2..c763113 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/SleepingListener.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/SleepingListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.listener; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldActivityListener.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldActivityListener.java index 12bfe07..ff8f8bc 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldActivityListener.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldActivityListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.listener; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldListener.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldListener.java index 1d58445..3d720df 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldListener.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/listener/WorldListener.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.listener; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeLogger.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeLogger.java index eb6b331..0b49aa3 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeLogger.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeLogger.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.platform; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongePlatform.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongePlatform.java index da805fa..fdc4ae7 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongePlatform.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongePlatform.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.platform; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeScheduler.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeScheduler.java index d8247ac..ef5afd7 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeScheduler.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeScheduler.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.platform; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeTask.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeTask.java index ccb1388..835f24c 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeTask.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeTask.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.platform; diff --git a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeWorld.java b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeWorld.java index a1798c1..cb11c44 100644 --- a/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeWorld.java +++ b/sponge/src/main/java/xyz/mayahive/customdaytime/sponge/platform/SpongeWorld.java @@ -1,7 +1,18 @@ /* - * Copyright (c) 2026 Seedim - * This file is part of Custom Daytime, which is licensed under GPL-3.0. - * See the LICENSE file in the project root for full license text. + * Copyright (c) 2026 Seedim + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package xyz.mayahive.customdaytime.sponge.platform;