Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 5118aad

Browse files
committed
refactor(bukkit): rename classes and update configurations to align with Paper API naming conventions
1 parent aa23462 commit 5118aad

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
maven("https://repo.slne.dev/repository/maven-public/") { name = "maven-public" }
88
}
99
dependencies {
10-
classpath("dev.slne.surf:surf-api-gradle-plugin:1.21.4+")
10+
classpath("dev.slne.surf:surf-api-gradle-plugin:1.21.7+")
1111
}
1212
}
1313

@@ -74,7 +74,7 @@ apiValidation {
7474

7575
private fun TaskContainerScope.configureShadowJar() = withType<ShadowJar> {
7676
mergeServiceFiles {
77-
setPath("META-INF")
77+
path = "META-INF"
7878
exclude("META-INF/MANIFEST.MF")
7979
}
8080

surf-cloud-bukkit/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ plugins {
77
}
88

99
surfPaperPluginApi {
10-
mainClass("dev.slne.surf.cloud.bukkit.BukkitMain")
11-
bootstrapper("dev.slne.surf.cloud.bukkit.BukkitBootstrap")
10+
mainClass("dev.slne.surf.cloud.bukkit.PaperMain")
11+
bootstrapper("dev.slne.surf.cloud.bukkit.PaperBootstrap")
1212
authors.add("twisti")
1313
generateLibraryLoader(false)
1414

surf-cloud-bukkit/src/main/kotlin/dev/slne/surf/cloud/bukkit/BukkitBootstrap.kt renamed to surf-cloud-bukkit/src/main/kotlin/dev/slne/surf/cloud/bukkit/PaperBootstrap.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import org.bukkit.plugin.java.JavaPlugin
1111
import kotlin.system.exitProcess
1212

1313
@Suppress("UnstableApiUsage", "unused")
14-
class BukkitBootstrap : PluginBootstrap {
14+
class PaperBootstrap : PluginBootstrap {
1515

1616
override fun bootstrap(context: BootstrapContext): Unit = runBlocking {
1717
try {
@@ -28,6 +28,6 @@ class BukkitBootstrap : PluginBootstrap {
2828
}
2929

3030
override fun createPlugin(context: PluginProviderContext): JavaPlugin {
31-
return BukkitMain()
31+
return PaperMain()
3232
}
3333
}

surf-cloud-bukkit/src/main/kotlin/dev/slne/surf/cloud/bukkit/BukkitMain.kt renamed to surf-cloud-bukkit/src/main/kotlin/dev/slne/surf/cloud/bukkit/PaperMain.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import java.net.URI
2424
import kotlin.contracts.ExperimentalContracts
2525
import kotlin.contracts.contract
2626

27-
class BukkitMain : SuspendingJavaPlugin() {
27+
class PaperMain : SuspendingJavaPlugin() {
2828
override suspend fun onLoadAsync() {
2929
try {
3030
coreCloudInstance.onLoad()
@@ -151,9 +151,9 @@ class BukkitMain : SuspendingJavaPlugin() {
151151

152152
companion object {
153153
@JvmStatic
154-
val instance: BukkitMain
155-
get() = getPlugin(BukkitMain::class.java)
154+
val instance: PaperMain
155+
get() = getPlugin(PaperMain::class.java)
156156
}
157157
}
158158

159-
val plugin get() = BukkitMain.instance
159+
val plugin get() = PaperMain.instance

0 commit comments

Comments
 (0)