File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed
src/main/kotlin/io/typst/bukkit/kotlin/serialization Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
88}
99
1010group = ' io.typst'
11- version = ' 1.1 .0'
11+ version = ' 1.2 .0'
1212
1313repositories {
1414 mavenCentral()
Original file line number Diff line number Diff line change 1-
21rootProject. name = ' bukkit-kotlin-serialization'
3-
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ import kotlinx.serialization.encoding.Decoder
77import kotlinx.serialization.encoding.Encoder
88import org.bukkit.Location
99
10+ @Deprecated(" Use BukkitLocation instead, this might causes issue with world manager plugins." )
1011typealias LocationSerializable = @Serializable(LocationSerializer ::class ) Location
1112
13+ @Deprecated(" Use BukkitLocation instead, this might causes issue with world manager plugins." )
1214class LocationSerializer : KSerializer <Location > {
1315 override val descriptor: SerialDescriptor
1416 get() = ConfigSerializableSerializer .descriptor
Original file line number Diff line number Diff line change 1+ package io.typst.bukkit.kotlin.serialization.location
2+
3+ import kotlinx.serialization.Serializable
4+
5+ @Serializable
6+ data class BukkitLocation (
7+ val world : String ,
8+ val x : Double ,
9+ val y : Double ,
10+ val z : Double ,
11+ val yaw : Double ,
12+ val pitch : Double ,
13+ )
You can’t perform that action at this time.
0 commit comments