Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud 2.0.0 Support #10

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ group = "net.onelitefeather"
version = "1.0.0-SNAPSHOT"

repositories {
mavenLocal()
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://maven.enginehub.org/repo/")
Expand All @@ -29,9 +30,9 @@ dependencies {
compileOnly(libs.fawe.core)
compileOnly(libs.fawe.bukkit)

paperLibrary(libs.cloud.paper)
paperLibrary(libs.cloud.annotations)
paperLibrary(libs.cloud.minecraft.extras)
implementation(libs.cloud.paper)
implementation(libs.cloud.annotations)
implementation(libs.cloud.minecraft.extras)
paperLibrary(libs.aerogel)
paperLibrary(libs.zstd)
paperLibrary(libs.redis)
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencyResolutionManagement {
library("fawe.core", "com.fastasyncworldedit", "FastAsyncWorldEdit-Core").withoutVersion()
library("fawe.bukkit", "com.fastasyncworldedit", "FastAsyncWorldEdit-Bukkit").withoutVersion()

version("cloud", "1.8.4")
version("cloud", "2.0.0-SNAPSHOT")
library("cloud.paper", "cloud.commandframework", "cloud-paper").versionRef("cloud")
library("cloud.annotations", "cloud.commandframework", "cloud-annotations").versionRef("cloud")
library("cloud.minecraft.extras", "cloud.commandframework", "cloud-minecraft-extras").versionRef("cloud")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package net.onelitefeather.clipboardconnect

import cloud.commandframework.annotations.AnnotationParser
import cloud.commandframework.arguments.parser.StandardParameters
import cloud.commandframework.bukkit.CloudBukkitCapabilities
import cloud.commandframework.execution.CommandExecutionCoordinator
import cloud.commandframework.meta.CommandMeta
import cloud.commandframework.paper.PaperCommandManager
import dev.derklaro.aerogel.Element
import dev.derklaro.aerogel.Injector
Expand Down Expand Up @@ -173,10 +171,7 @@ class ClipboardConnect : JavaPlugin() {
val annotationParser = AnnotationParser(
commandManager,
ClipboardSender::class.java
) { t ->
CommandMeta.simple().with(CommandMeta.DESCRIPTION, t.get(StandardParameters.DESCRIPTION, "No description"))
.build()
}
)
injector.install(BindingBuilder.create().bind(Element.forType(annotationParser.javaClass)).bindMatching(RawTypeMatcher.create(annotationParser.javaClass)).toInstance(annotationParser))
}

Expand Down
Loading