diff --git a/build.gradle.kts b/build.gradle.kts index 4be76bd..2e0366e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -44,7 +44,7 @@ allprojects { //} dependencies { - compileOnly("net.kyori", "adventure-platform-bukkit", "4.3.0") + //compileOnly("net.kyori", "adventure-platform-bukkit", "4.3.0") compileOnly("ch.jalu", "configme", "1.3.1") diff --git a/buildSrc/src/main/kotlin/paper-plugin.gradle.kts b/buildSrc/src/main/kotlin/paper-plugin.gradle.kts index ec4b478..bc95fe3 100644 --- a/buildSrc/src/main/kotlin/paper-plugin.gradle.kts +++ b/buildSrc/src/main/kotlin/paper-plugin.gradle.kts @@ -6,8 +6,14 @@ plugins { id("io.papermc.paperweight.userdev") } +repositories { + maven("https://repo.papermc.io/repository/maven-public/") +} + dependencies { - paperweight.paperDevBundle("1.20-R0.1-SNAPSHOT") + compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") + + paperweight.paperDevBundle("1.20.1-R0.1-SNAPSHOT") } tasks { diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/interfaces/Universal.java b/paper/src/main/java/com/badbones69/crazyauctions/api/interfaces/Universal.java index ee7f7eb..85f31ab 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/interfaces/Universal.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/interfaces/Universal.java @@ -1,9 +1,10 @@ package com.badbones69.crazyauctions.api.interfaces; import com.badbones69.crazyauctions.CrazyAuctions; +import org.bukkit.plugin.java.JavaPlugin; public interface Universal { - CrazyAuctions plugin = CrazyAuctions.getPlugin(); + CrazyAuctions plugin = JavaPlugin.getPlugin(CrazyAuctions.class); } \ No newline at end of file