类 PlayerCurrencyApi
java.lang.Object
cn.handyplus.currency.api.PlayerCurrencyApi
API
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明查询全部货币类型static String获取货币描述static booleangive(@NotNull List<UUID> playerUuidList, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量给予static booleangive(@NotNull UUID playerUuid, @NotNull String type, @NotNull Long amount, String operatorName, String operatorReason) 给予static booleangive(@NotNull UUID playerUuid, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量给予查看static Long查看查看static Long查看累计值static boolean注册类型static boolean注册类型static booleanset(@NotNull List<UUID> playerUuidList, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量设置static booleanset(@NotNull UUID playerUuid, @NotNull String type, @NotNull Long amount, String operatorName, String operatorReason) 设置static booleanset(@NotNull UUID playerUuid, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量设置static booleantake(@NotNull List<UUID> playerUuidList, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量扣除static booleantake(@NotNull UUID playerUuid, @NotNull String type, @NotNull Long amount, String operatorName, String operatorReason) 扣除static booleantake(@NotNull UUID playerUuid, @NotNull Map<String, Long> currencyChangeMap, String operatorName, String operatorReason) 批量扣除static voidunregister(String type) 注销类型static voidunregister(org.bukkit.plugin.Plugin plugin) 注销类型
-
构造器详细资料
-
PlayerCurrencyApi
public PlayerCurrencyApi()
-
-
方法详细资料
-
give
-
set
-
take
-
give
-
set
-
take
-
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
-
look
-
look
-
lookTotal
-
findAllType
-
register
注册类型- 参数:
plugin- 插件desc- 类型名称
-
unregister
public static void unregister(org.bukkit.plugin.Plugin plugin) 注销类型- 参数:
plugin- 插件
-
register
-
unregister
-
getDesc
-