类 PlayerTitleApi
java.lang.Object
com.handy.playertitle.api.PlayerTitleApi
PlayerTitleApi
- 从以下版本开始:
- 2.7.9
-
方法概要
修饰符和类型方法说明add
(TitleListParam titleListParam) 新增称号boolean
addBuffType
(String buffType, String buffTypeName, String pluginName) 新增称号Buff类型boolean
已过时。boolean
增加玩家称号币boolean
addTitleBuff
(Long titleId, List<TitleBuffParam> titleBuffs) 添加称号buffboolean
addTitleParticle
(Long titleId, TitleParticleParam titleParticleParam) 添加称号粒子findAllTitleIdByPlayerName
(String playerName) 已过时。findAllTitleIdByPlayerUuid
(UUID playerUuid) 获取玩家所有称号IDfindByPlayerNameAndIsUse
(org.bukkit.entity.Player player) 已过时。findByPlayerNameAndIsUseBuff
(org.bukkit.entity.Player player) 已过时。findByPlayerNameAndIsUseParticle
(org.bukkit.entity.Player player) 已过时。findByPlayerUuidAndIsUse
(org.bukkit.entity.Player player) 获取玩家正在使用的展示称号信息findByPlayerUuidAndIsUseBuff
(org.bukkit.entity.Player player) 获取玩家正在使用的属性称号信息findByPlayerUuidAndIsUseParticle
(org.bukkit.entity.Player player) 获取玩家正在使用的粒子称号信息boolean
findByTitleId
(Long titleId) 查询称号static PlayerTitleApi
getPlayerCoinNum
(String playerName) 已过时。getPlayerCoinNum
(UUID playerUuid) 获取玩家称号币getPlayerTitleNum
(String playerName) 已过时。getPlayerTitleNum
(UUID playerUuid) 获取玩家称号数量boolean
playerExistTitleId
(String playerName, Integer titleId) 已过时。boolean
playerExistTitleId
(UUID playerUuid, Integer titleId) 玩家是否有对应的称号IDvoid
removeBuff
(org.bukkit.entity.Player player) 移除buffboolean
removePlayerTitle
(String playerName, Long titleId) 已过时。boolean
removePlayerTitle
(UUID playerUuid, Long titleId) 根据titleId和玩家Uid删除 玩家对应称号boolean
removeTitle
(Long titleId) 删除称号boolean
removeTitleBuff
(Long titleId) 删除称号buffboolean
removeTitleParticle
(Long titleId) 删除称号粒子boolean
给玩家称号boolean
已过时。boolean
给玩家称号void
setBuff
(org.bukkit.entity.Player player) 设置buffboolean
设置玩家称号币boolean
subtractCoin
(String playerName, Long amount) 已过时。boolean
subtractCoin
(UUID playerUuid, Integer amount) 减少玩家称号币boolean
更改名称boolean
updateDescription
(Long titleId, String description) 更改描述
-
方法详细资料
-
getInstance
-
addBuffType
新增称号Buff类型- 参数:
buffType
- buff类型buffTypeName
- buff类型名称pluginName
- 注册插件名称- 返回:
- true/成功
- 从以下版本开始:
- 2.8.4
-
findByTitleId
查询称号- 参数:
titleId
- 称号唯一编号id- 返回:
- true/存在
-
add
新增称号- 参数:
titleListParam
- 入参- 返回:
- 称号唯一编号id,请保存好
-
removeTitle
删除称号- 参数:
titleId
- 称号id- 返回:
- true/成功
- 从以下版本开始:
- 2.10.1
-
addTitleBuff
添加称号buff- 参数:
titleId
- 称号idtitleBuffs
- 称号buff- 返回:
- true/成功
-
removeTitleBuff
删除称号buff- 参数:
titleId
- 称号id- 返回:
- true/成功
-
addTitleParticle
添加称号粒子- 参数:
titleId
- 称号idtitleParticleParam
- 称号粒子- 返回:
- true/成功
-
removeTitleParticle
删除称号粒子- 参数:
titleId
- 称号id- 返回:
- true/成功
-
update
更改名称- 参数:
titleId
- 称号idtitleName
- 称号名称isPrefixAndSuffix
- 是否使用默认前后缀- 返回:
- true/成功
-
updateDescription
更改描述- 参数:
titleId
- 称号iddescription
- 描述- 返回:
- true/成功
-
set
已过时。给玩家称号- 参数:
playerName
- 玩家名titleId
- 称号编码day
- 时间,0为永久- 返回:
- true/成功
-
set
给玩家称号- 参数:
playerName
- 玩家名titleId
- 称号编码- 返回:
- true/成功
- 从以下版本开始:
- 1.10.1
-
set
给玩家称号- 参数:
playerName
- 玩家名playerUuid
- 玩家uidtitleId
- 称号编码day
- 时间,0为永久- 返回:
- true/成功
- 从以下版本开始:
- 4.0.0
-
removePlayerTitle
已过时。根据titleId和玩家名删除 玩家对应称号- 参数:
playerName
- 玩家名titleId
- 称号id- 返回:
- true成功
- 从以下版本开始:
- 2.10.1
-
removePlayerTitle
根据titleId和玩家Uid删除 玩家对应称号- 参数:
playerUuid
- 玩家UidtitleId
- 称号id- 返回:
- true成功
- 从以下版本开始:
- 2.10.1
-
findByPlayerNameAndIsUse
已过时。获取玩家正在使用的展示称号信息- 参数:
player
- 玩家- 返回:
- 展示称号
-
findByPlayerUuidAndIsUse
获取玩家正在使用的展示称号信息- 参数:
player
- 玩家- 返回:
- 展示称号
- 从以下版本开始:
- 4.0.0
-
findByPlayerNameAndIsUseBuff
已过时。获取玩家正在使用的属性称号信息- 参数:
player
- 玩家- 返回:
- 属性称号
- 从以下版本开始:
- 3.3.0
-
findByPlayerUuidAndIsUseBuff
获取玩家正在使用的属性称号信息- 参数:
player
- 玩家- 返回:
- 属性称号
- 从以下版本开始:
- 4.0.0
-
findByPlayerNameAndIsUseParticle
已过时。获取玩家正在使用的粒子称号信息- 参数:
player
- 玩家- 返回:
- 粒子称号
- 从以下版本开始:
- 3.3.0
-
findByPlayerUuidAndIsUseParticle
获取玩家正在使用的粒子称号信息- 参数:
player
- 玩家- 返回:
- 粒子称号
- 从以下版本开始:
- 4.0.0
-
getPlayerCoinNum
已过时。获取玩家称号币- 参数:
playerName
- 玩家名- 返回:
- 称号币
-
addCoin
已过时。增加玩家称号币- 参数:
playerName
- 玩家名amount
- 数量- 返回:
- true/成功
-
subtractCoin
已过时。减少玩家称号币- 参数:
playerName
- 玩家名amount
- 数量- 返回:
- true/成功
-
getPlayerCoinNum
获取玩家称号币- 参数:
playerUuid
- 玩家uid- 返回:
- 称号币
- 从以下版本开始:
- 4.0.0
-
addCoin
增加玩家称号币- 参数:
playerUuid
- 玩家uidamount
- 数量- 返回:
- true/成功
- 从以下版本开始:
- 4.0.0
-
subtractCoin
减少玩家称号币- 参数:
playerUuid
- 玩家uidamount
- 数量- 返回:
- true/成功
- 从以下版本开始:
- 4.0.0
-
setCoin
设置玩家称号币- 参数:
playerUuid
- 玩家uidamount
- 数量- 返回:
- true/成功
- 从以下版本开始:
- 4.0.0
-
getPlayerTitleNum
已过时。获取玩家称号数量- 参数:
playerName
- 玩家名- 返回:
- 称号数量
-
getPlayerTitleNum
获取玩家称号数量- 参数:
playerUuid
- 玩家Uid- 返回:
- 称号数量
- 从以下版本开始:
- 4.0.0
-
removeBuff
public void removeBuff(org.bukkit.entity.Player player) 移除buff- 参数:
player
- 玩家- 从以下版本开始:
- 2.9.9
-
setBuff
public void setBuff(org.bukkit.entity.Player player) 设置buff- 参数:
player
- 玩家- 从以下版本开始:
- 2.9.9
-
playerExistTitleId
已过时。玩家是否有对应的称号ID- 参数:
playerName
- 玩家名称titleId
- 称号id- 返回:
- true 有, false 无
- 从以下版本开始:
- 3.1.1
-
playerExistTitleId
玩家是否有对应的称号ID- 参数:
playerUuid
- 玩家UidtitleId
- 称号id- 返回:
- true 有, false 无
- 从以下版本开始:
- 4.0.0
-
findAllTitleIdByPlayerName
已过时。获取玩家所有称号ID- 参数:
playerName
- 玩家名称- 返回:
- 所有称号ID
- 从以下版本开始:
- 3.4.1
-
findAllTitleIdByPlayerUuid
获取玩家所有称号ID- 参数:
playerUuid
- 玩家uid- 返回:
- 所有称号ID
- 从以下版本开始:
- 4.0.0
-