Skip to content

Commit

Permalink
Paper 1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mooziii authored and jakobkmar committed Dec 17, 2022
1 parent e140411 commit 991b3e7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions build.gradle.kts
Expand Up @@ -3,33 +3,33 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val githubRepo = "jakobkmar/KSpigot"

group = "net.axay"
version = "1.19.0"
version = "1.19.1"

description = "A Kotlin API for Minecraft plugins using the Spigot or Paper toolchain"

plugins {
kotlin("jvm") version "1.7.0"
kotlin("plugin.serialization") version "1.7.0"
kotlin("jvm") version "1.7.22"
kotlin("plugin.serialization") version "1.7.22"

`java-library`
`maven-publish`
signing

id("org.jetbrains.dokka") version "1.6.21"
id("org.jetbrains.dokka") version "1.7.20"

id("io.papermc.paperweight.userdev") version "1.3.6"
id("io.papermc.paperweight.userdev") version "1.4.0"
}

repositories {
mavenCentral()
}

dependencies {
paperDevBundle("1.19-R0.1-SNAPSHOT")
paperDevBundle("1.19.3-R0.1-SNAPSHOT")

api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2")
api("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.2")
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
api("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4")
}

tasks {
Expand Down
Expand Up @@ -33,7 +33,7 @@ object BrigardierSupport {
}

@Suppress("HasPlatformType")
fun resolveCommandManager() = (server as org.bukkit.craftbukkit.v1_19_R1.CraftServer)
fun resolveCommandManager() = (server as org.bukkit.craftbukkit.v1_19_R2.CraftServer)
.server.vanillaCommandDispatcher

internal fun registerAll() {
Expand All @@ -52,7 +52,7 @@ object BrigardierSupport {
fun updateCommandTree() {
onlinePlayers.forEach {
// send the command tree
resolveCommandManager().sendCommands((it as org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer).handle)
resolveCommandManager().sendCommands((it as org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer).handle)
}
}
}
4 changes: 2 additions & 2 deletions src/main/kotlin/net/axay/kspigot/data/NBTDataLoader.kt
Expand Up @@ -4,8 +4,8 @@ package net.axay.kspigot.data

import net.axay.kspigot.annotations.NMS_General
import net.minecraft.nbt.CompoundTag
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftEntity
import org.bukkit.craftbukkit.v1_19_R1.inventory.CraftItemStack
import org.bukkit.craftbukkit.v1_19_R2.entity.CraftEntity
import org.bukkit.craftbukkit.v1_19_R2.inventory.CraftItemStack
import org.bukkit.entity.Entity
import org.bukkit.inventory.ItemStack

Expand Down
Expand Up @@ -138,7 +138,7 @@ fun Player.showOnlinePlayers() {
@Deprecated("This function is unstable and it cannot be guaranteed that it will work at any time in the future.")
@NMS_General
fun Location.spawnCleanEntity(entityType: EntityType): Entity? {
val craftWorld = world as? org.bukkit.craftbukkit.v1_19_R1.CraftWorld ?: return null
val craftWorld = world as? org.bukkit.craftbukkit.v1_19_R2.CraftWorld ?: return null
return craftWorld.createEntity(this, entityType.entityClass)?.let {
craftWorld.handle.addFreshEntity(it)
return@let it.bukkitEntity
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/net/axay/kspigot/structures/Structure.kt
Expand Up @@ -10,7 +10,7 @@ import org.bukkit.Location
import org.bukkit.Material
import org.bukkit.block.Block
import org.bukkit.block.data.BlockData
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftEntity
import org.bukkit.craftbukkit.v1_19_R2.entity.CraftEntity
import org.bukkit.entity.Entity
import org.bukkit.entity.EntityType

Expand Down

0 comments on commit 991b3e7

Please sign in to comment.