类 PlayerCurrencyApi
java.lang.Object
cn.handyplus.currency.api.PlayerCurrencyApi
API
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明查询全部货币类型static String
获取货币描述static boolean
give
(@NotNull List<UUID> playerUuidList, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量给予static boolean
give
(@NotNull UUID playerUuid, @NotNull String type, @NotNull Long amount, String operatorName, String operatorReason) 给予static boolean
give
(@NotNull UUID playerUuid, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量给予查看static Long
查看查看static Long
查看累计值static boolean
注册类型static boolean
注册类型static boolean
set
(@NotNull List<UUID> playerUuidList, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量设置static boolean
set
(@NotNull UUID playerUuid, @NotNull String type, @NotNull Long amount, String operatorName, String operatorReason) 设置static boolean
set
(@NotNull UUID playerUuid, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量设置static boolean
take
(@NotNull List<UUID> playerUuidList, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量扣除static boolean
take
(@NotNull UUID playerUuid, @NotNull String type, @NotNull Long amount, String operatorName, String operatorReason) 扣除static boolean
take
(@NotNull UUID playerUuid, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量扣除static void
unregister
(String type) 注销类型static void
unregister
(org.bukkit.plugin.Plugin plugin) 注销类型
-
构造器详细资料
-
PlayerCurrencyApi
public PlayerCurrencyApi()
-
-
方法详细资料
-
give
public static boolean give(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull String type, @NotNull @NotNull Long amount, String operatorName, String operatorReason) 给予- 参数:
playerUuid
- 玩家uidtype
- 类型amount
- 数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
-
set
public static boolean set(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull String type, @NotNull @NotNull Long amount, String operatorName, String operatorReason) 设置- 参数:
playerUuid
- 玩家uidtype
- 类型amount
- 数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
-
take
public static boolean take(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull String type, @NotNull @NotNull Long amount, String operatorName, String operatorReason) 扣除- 参数:
playerUuid
- 玩家uidtype
- 类型amount
- 数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
-
give
public static boolean give(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量给予- 参数:
playerUuid
- 玩家uidcurrencyChangeMap
- 变更值 key 类型 value 变更数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
- 从以下版本开始:
- 1.0.8
-
set
public static boolean set(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量设置- 参数:
playerUuid
- 玩家uidcurrencyChangeMap
- 变更值 key 类型 value 变更数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
- 从以下版本开始:
- 1.0.8
-
take
public static boolean take(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量扣除- 参数:
playerUuid
- 玩家uidcurrencyChangeMap
- 变更值 key 类型 value 变更数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
- 从以下版本开始:
- 1.0.8
-
give
public static boolean give(@NotNull @NotNull List<UUID> playerUuidList, @NotNull @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量给予- 参数:
playerUuidList
- 玩家uid集合currencyChangeMap
- 变更值 key 类型 value 变更数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
- 从以下版本开始:
- 1.0.8
-
set
public static boolean set(@NotNull @NotNull List<UUID> playerUuidList, @NotNull @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量设置- 参数:
playerUuidList
- 玩家uid集合currencyChangeMap
- 变更值 key 类型 value 变更数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
- 从以下版本开始:
- 1.0.8
-
take
public static boolean take(@NotNull @NotNull List<UUID> playerUuidList, @NotNull @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量扣除- 参数:
playerUuidList
- 玩家uid集合currencyChangeMap
- 变更值 key 类型 value 变更数量operatorName
- 操作人operatorReason
- 操作原因- 返回:
- true成功
- 从以下版本开始:
- 1.0.8
-
look
查看- 参数:
playerUuid
- 玩家uidtype
- 类型- 返回:
- 余额
-
look
public static Map<UUID,Long> look(@NotNull @NotNull List<UUID> playerUuidList, @NotNull @NotNull String type) 查看- 参数:
playerUuidList
- 玩家uidtype
- 类型- 返回:
- key uid value 余额
- 从以下版本开始:
- 1.0.8
-
look
public static Map<String,Long> look(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull List<String> typeList) 查看- 参数:
playerUuid
- 玩家uidtypeList
- 类型集合- 返回:
- key 类型 value 余额
- 从以下版本开始:
- 1.0.8
-
lookTotal
查看累计值- 参数:
playerUuid
- 玩家uidtype
- 类型- 返回:
- 累计值
- 从以下版本开始:
- 1.0.6
-
findAllType
查询全部货币类型- 返回:
- 全部货币类型
-
register
注册类型- 参数:
plugin
- 插件desc
- 类型名称
-
unregister
public static void unregister(org.bukkit.plugin.Plugin plugin) 注销类型- 参数:
plugin
- 插件
-
register
注册类型- 参数:
type
- 类型desc
- 类型名称
-
unregister
注销类型- 参数:
type
- 类型
-
getDesc
获取货币描述- 参数:
type
- 类型- 返回:
- 描述
- 从以下版本开始:
- 1.0.3
-