Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
- name: Set up JDK 25
uses: actions/setup-java@v3
with:
java-version: '21'
java-version: '25'
distribution: 'temurin'

- name: Setup Gradle
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ⏳ Advanced PlayTime Plugin

[![Build Status](https://github.com/imDMK/AdvancedPlayTime/actions/workflows/gradle.yml/badge.svg)](https://github.com/imDMK/AdvancedPlayTime/actions/workflows/gradle.yml)
![JDK](https://img.shields.io/badge/JDK-1.21-blue.svg)
![Supported versions](https://img.shields.io/badge/Minecraft-1.21--1.21.11-green.svg)
![JDK](https://img.shields.io/badge/JDK-25-blue.svg)
![Supported versions](https://img.shields.io/badge/Minecraft-1.21--26.2-green.svg)
[![SpigotMC](https://img.shields.io/badge/SpigotMC-yellow.svg)](https://www.spigotmc.org/resources/%E2%8F%B0%EF%B8%8F-advancedplaytime-1-21-1-21-10.130458/)
[![Modrinth](https://img.shields.io/badge/Modrinth-1bd96a.svg)](https://modrinth.com/plugin/advancedplaytime)
[![bStats](https://img.shields.io/badge/bStats-00695c)](https://bstats.org/plugin/bukkit/PlayTime/19362)
Expand All @@ -13,6 +13,10 @@

---

### 📦 Requirements
- **Java 25** or newer on the server.
- **Spigot / Paper 1.21 – 26.2**.

### ✨ Key Features
- 🧠 **Highly optimized** – Zero-lag performance, even on large servers.
- 🎨 **Fully customizable GUIs** – Design the look and feel to fit your server's style.
Expand Down
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repositories {
dependencies {
implementation("com.gradleup.shadow:shadow-gradle-plugin:9.6.1")
implementation("net.minecrell:plugin-yml:0.6.0")
implementation("org.ow2.asm:asm:9.10.1")
}

sourceSets {
Expand Down
10 changes: 10 additions & 0 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
object Versions {

/** Java release the plugin is compiled for and requires at runtime. */
const val JAVA = 25

/** Spigot API the plugin is compiled against (newest supported server). */
const val SPIGOT_API = "26.2-R0.1-SNAPSHOT"

/** Oldest supported Spigot API, verified by the `compileJavaSpigotMin` task. */
const val SPIGOT_API_MIN = "1.21-R0.1-SNAPSHOT"

/** Value of `api-version` in plugin.yml. */
const val SPIGOT_API_VERSION = "1.21"

const val PLACEHOLDER_API = "2.12.3"

const val PANDA_DI = "1.8.0"
Expand Down
8 changes: 4 additions & 4 deletions buildSrc/src/main/kotlin/playtime-java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ group = "com.github.imdmk"
version = "3.0.2"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
toolchain.languageVersion.set(JavaLanguageVersion.of(Versions.JAVA))
}

tasks.compileJava {
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs = listOf("-Xlint:deprecation", "-parameters")
options.encoding = "UTF-8"
options.release = 21
}
options.release.set(Versions.JAVA)
}
Loading
Loading