mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-14 15:46:06 +09:00
fix: targeted voucher code not working
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
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
|
||||
true,
|
||||
null
|
||||
)
|
||||
|
||||
println(code)
|
||||
|
||||
val voucher = RedeemCodeMachine.decode(code)
|
||||
val voucher = RedeemCodeMachine.decode(code, uuid)
|
||||
|
||||
println(voucher)
|
||||
}
|
||||
Reference in New Issue
Block a user