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 {
8
8
}
9
9
10
10
group = ' io.typst'
11
- version = ' 1.1 .0'
11
+ version = ' 1.2 .0'
12
12
13
13
repositories {
14
14
mavenCentral()
Original file line number Diff line number Diff line change 1
-
2
1
rootProject. name = ' bukkit-kotlin-serialization'
3
-
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ import kotlinx.serialization.encoding.Decoder
7
7
import kotlinx.serialization.encoding.Encoder
8
8
import org.bukkit.Location
9
9
10
+ @Deprecated(" Use BukkitLocation instead, this might causes issue with world manager plugins." )
10
11
typealias LocationSerializable = @Serializable(LocationSerializer ::class ) Location
11
12
13
+ @Deprecated(" Use BukkitLocation instead, this might causes issue with world manager plugins." )
12
14
class LocationSerializer : KSerializer <Location > {
13
15
override val descriptor: SerialDescriptor
14
16
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