From 52c5b28b79b7efc7305caa783172655f419b642e Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sun, 12 May 2024 12:43:36 -0500 Subject: [PATCH] Fix FAWE logging on newer builds (#528) * Fix FAWE logging on newer builds * fix regular WE logging * Fix registering of FAWE for event bus * Remove jcenter * Add missing `replaceBlocks` method * Remove FAWE toggle entirely * oops, i can't do it that way --------- Co-authored-by: Intelli <6790859+Intelli@users.noreply.github.com> --- build.gradle | 12 +-- pom.xml | 29 +++-- .../java/net/coreprotect/config/Config.java | 2 - .../CoreProtectEditSessionEvent.java | 93 ++++++++-------- .../worldedit/CoreProtectLogger.java | 100 +++++++++++++++--- 5 files changed, 159 insertions(+), 77 deletions(-) diff --git a/build.gradle b/build.gradle index e8e7a5bc..85f1a2b3 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ import org.apache.tools.ant.filters.ReplaceTokens plugins { id 'java' - id 'com.github.johnrengelman.shadow' version '7.1.2' + id 'com.github.johnrengelman.shadow' version '8.1.1' id 'com.palantir.git-version' version '0.13.0' } @@ -23,17 +23,15 @@ if (System.getenv("BUILD_NUMBER") != null) { logger.info("Building version $version") repositories { - jcenter() maven { url = 'https://hub.spigotmc.org/nexus/content/groups/public/' } - maven { url = 'https://papermc.io/repo/repository/maven-public/' } + maven { url = 'https://repo.papermc.io/repository/maven-public/' } maven { url = 'https://repo.codemc.org/repository/maven-public/' } - maven { url = 'https://maven.enginehub.org/repo/' } } dependencies { - compileOnly('com.sk89q.worldedit:worldedit-bukkit:7.0.0-SNAPSHOT') { - exclude group: 'org.bukkit' - } + implementation(platform("com.intellectualsites.bom:bom-newest:1.44")) // Ref: https://github.com/IntellectualSites/bom + compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core") + compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") compileOnly 'io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT' implementation 'org.bstats:bstats-bukkit-lite:1.8' implementation 'com.zaxxer:HikariCP:5.0.1' diff --git a/pom.xml b/pom.xml index 64d7d1ba..bfb976e8 100755 --- a/pom.xml +++ b/pom.xml @@ -88,11 +88,18 @@ codemc-repo https://repo.codemc.org/repository/maven-public/ - - enginehub-repo - https://maven.enginehub.org/repo/ - + + + + com.intellectualsites.bom + bom-newest + 1.44 + import + pom + + +