mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 13:51:53 +09:00
19 lines
353 B
Kotlin
19 lines
353 B
Kotlin
import net.torvald.terrarum.modulebasegame.redeemable.RedeemCodeMachine
|
|
import java.util.*
|
|
|
|
fun main() {
|
|
val uuid = UUID.randomUUID()
|
|
|
|
val code = RedeemCodeMachine.encode(
|
|
"item@basegame:65511",
|
|
6,
|
|
true,
|
|
null
|
|
)
|
|
|
|
println(code)
|
|
|
|
val voucher = RedeemCodeMachine.decode(code, uuid)
|
|
|
|
println(voucher)
|
|
} |