Skip to content
Merged

11 #113

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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:

if: "github.event_name == 'workflow_dispatch'"
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2.4.2
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks {

allprojects {
group = "com.github.kaspiandev.antipopup"
version = "10.1"
version = "11"

repositories {
mavenCentral()
Expand All @@ -39,7 +39,7 @@ allprojects {
}
maven {
name = "codemc"
url = "https://repo.codemc.io/repository/maven-releases/"
url = "https://repo.codemc.io/repository/maven-public/"
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
userdevVer=1.7.1
userdevVer=2.0.0-beta.16
shadowVer=8.1.7
tinyRemapperVer=0.10.3
packetEventsVer=2.7.0
packetEventsVer=2.8.0-SNAPSHOT
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
20 changes: 11 additions & 9 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

186 changes: 94 additions & 92 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ pluginManagement {

rootProject.name = "AntiPopup"
include "spigot", "shared", "nms", "v1.19.2", "v1.19.3", "v1.19.4",
"v1.20.1", "v1.20.2", "v1.20.4", "v1.20.6", "v1.21", "v1.21.2", "v1.21.4", "velocity"
"v1.20.1", "v1.20.2", "v1.20.4", "v1.20.6", "v1.21",
"v1.21.2", "v1.21.4", "v1.21.5", "velocity"

1 change: 1 addition & 0 deletions spigot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies {
implementation project(path: ":v1.21", configuration: "reobf")
implementation project(path: ":v1.21.2", configuration: "reobf")
implementation project(path: ":v1.21.4", configuration: "reobf")
implementation project(path: ":v1.21.5", configuration: "reobf")

compileOnly "org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT"
compileOnly "com.viaversion:viaversion:5.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.github.kaspiandev.antipopup.nms.v1_21.PlayerInjector_v1_21;
import com.github.kaspiandev.antipopup.nms.v1_21_2.PlayerInjector_v1_21_2;
import com.github.kaspiandev.antipopup.nms.v1_21_4.PlayerInjector_v1_21_4;
import com.github.kaspiandev.antipopup.nms.v1_21_5.PlayerInjector_v1_21_5;
import com.github.kaspiandev.antipopup.spigot.api.Api;
import com.github.kaspiandev.antipopup.spigot.hook.HookManager;
import com.github.kaspiandev.antipopup.spigot.hook.viaversion.ViaVersionHook;
Expand Down Expand Up @@ -121,6 +122,7 @@ public void onEnable() {
if (config.isBlockChatReports()) {
if (!config.isExperimentalMode()) {
PlayerListener playerListener = switch (serverManager.getVersion()) {
case V_1_21_5 -> new PlayerListener(new PlayerInjector_v1_21_5());
case V_1_21_4 -> new PlayerListener(new PlayerInjector_v1_21_4());
case V_1_21_2, V_1_21_3 -> new PlayerListener(new PlayerInjector_v1_21_2());
case V_1_21, V_1_21_1 -> new PlayerListener(new PlayerInjector_v1_21());
Expand Down
21 changes: 21 additions & 0 deletions v1.21.5/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
plugins {
id "java"
id "io.papermc.paperweight.userdev" version "${userdevVer}"
}

dependencies {
compileOnly project(path: ":shared")
compileOnly project(path: ":nms")

paperweightDevelopmentBundle "io.papermc.paper:dev-bundle:1.21.5-R0.1-SNAPSHOT"
//pluginRemapper "net.fabricmc:tiny-remapper:0.11.1:fat"
}

java {
disableAutoTargetJvm()
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
Loading
Loading