Skip to content

Commit

Permalink
move to paper-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Oct 23, 2023
1 parent 939e094 commit 608fff8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 22 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.mia.kotlin.jvm)
alias(libs.plugins.kotlinx.serialization)
Expand All @@ -25,6 +24,8 @@ repositories {

dependencies {
// MineInAbyss platform
compileOnly(libs.bundles.idofront.core)
compileOnly(libs.idofront.nms)
compileOnly(libs.kotlinx.serialization.json)
compileOnly(libs.kotlinx.serialization.kaml)
compileOnly(libs.kotlinx.coroutines)
Expand All @@ -44,8 +45,6 @@ dependencies {

implementation(blockyLibs.minecraft.plugin.protectionlib)
implementation(blockyLibs.minecraft.plugin.customblockdata)
implementation(libs.bundles.idofront.core)
implementation(libs.idofront.nms)
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
group=com.mineinabyss
version=0.8
idofrontVersion=0.19.14
idofrontVersion=0.20.2
composeVersion=1.2.1
3 changes: 1 addition & 2 deletions gradle/blockyLibs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
gearyPaper = "0.26.0"
gearyPaper = "0.26.2"
guiy="0.9.0"
protocolburrito="0.8.0"

Expand All @@ -9,6 +9,5 @@ guiy = { module = "com.mineinabyss:guiy-compose", version.ref = "guiy" }
protocolburrito = { module = "com.mineinabyss:protocolburrito", version.ref = "protocolburrito" }

minecraft-plugin-customblockdata = "com.jeff-media:custom-block-data:2.2.2"
minecraft-plugin-lightapi = "com.github.BeYkeRYkt:LightAPI:5.3.0-Bukkit"
minecraft-plugin-protectionlib = "com.github.oraxen:protectionlib:1.3.5"
minecraft-plugin-mythic = "io.lumine:Mythic-Dist:5.2.6"
6 changes: 0 additions & 6 deletions src/main/kotlin/com/mineinabyss/blocky/BlockyPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import com.mineinabyss.geary.prefabs.PrefabKey
import com.mineinabyss.idofront.config.config
import com.mineinabyss.idofront.di.DI
import com.mineinabyss.idofront.messaging.logError
import com.mineinabyss.idofront.platforms.Platforms
import com.mineinabyss.idofront.plugin.listeners
import com.sk89q.worldedit.WorldEdit
import io.papermc.paper.configuration.GlobalConfiguration
Expand All @@ -29,12 +28,7 @@ import org.bukkit.plugin.java.JavaPlugin
var prefabMap = mapOf<BlockData, PrefabKey>()
var registryTagMap = mapOf<ResourceLocation, IntArrayList>()
class BlockyPlugin : JavaPlugin() {
override fun onLoad() {
Platforms.load(this, "mineinabyss")
}

override fun onEnable() {

createBlockyContext()

if (Bukkit.getPluginManager().isPluginEnabled("WorldEdit")) {
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/paper-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Blocky
version: "${plugin_version}"
author: boy0000
main: com.mineinabyss.blocky.BlockyPlugin
api-version: "1.20"

dependencies:
server:
Geary:
required: true
load: BEFORE
join-classpath: true
ProtocolBurrito:
required: true
load: BEFORE
join-classpath: true
Guiy:
required: false
load: BEFORE
join-classpath: true
FastAsyncWorldEdit:
required: false
load: BEFORE
join-classpath: true
ModelEngine:
required: false
load: BEFORE
join-classpath: true
10 changes: 0 additions & 10 deletions src/main/resources/plugin.yml

This file was deleted.

0 comments on commit 608fff8

Please sign in to comment.