From b666ededaa457dc759d257bce4ab483242aaee76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD?= <67080574+xbaimiao@users.noreply.github.com> Date: Fri, 16 Sep 2022 16:28:49 +0800 Subject: [PATCH] fix bugs --- .../kotlin/com/github/xbaimiao/shoppro/core/vault/Currency.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/xbaimiao/shoppro/core/vault/Currency.kt b/src/main/kotlin/com/github/xbaimiao/shoppro/core/vault/Currency.kt index 6ae4f8c..6d3f536 100644 --- a/src/main/kotlin/com/github/xbaimiao/shoppro/core/vault/Currency.kt +++ b/src/main/kotlin/com/github/xbaimiao/shoppro/core/vault/Currency.kt @@ -1,6 +1,7 @@ package com.github.xbaimiao.shoppro.core.vault import org.bukkit.entity.Player +import java.util.* interface Currency { @@ -20,7 +21,7 @@ enum class CurrencyType(val string: String, val func: (name: String) -> Currency POINTS("points", { PointsImpl() }), - DIY("diy", { + DIY(UUID.randomUUID().toString(), { DiyCurrency.formString(it) });