类 PlayerGuildApi

java.lang.Object
cn.handyplus.guild.api.PlayerGuildApi

public class PlayerGuildApi extends Object
API
从以下版本开始:
2.0.0
  • 方法详细资料

    • giveGuildMoneyByName

      public static boolean giveGuildMoneyByName(@NotNull @NotNull String guildName, int money)
      增加公会资金
      参数:
      guildName - 公会名称
      money - 资金
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • takeGuildMoneyByName

      public static boolean takeGuildMoneyByName(@NotNull @NotNull String guildName, int money)
      减少公会资金
      参数:
      guildName - 公会名称
      money - 资金
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • setGuildMoneyByName

      public static boolean setGuildMoneyByName(@NotNull @NotNull String guildName, int money)
      设置公会资金
      参数:
      guildName - 公会名称
      money - 资金
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • giveGuildProsperityDegreeByName

      public static boolean giveGuildProsperityDegreeByName(@NotNull @NotNull String guildName, int money)
      增加公会活跃
      参数:
      guildName - 公会名称
      money - 活跃
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • takeGuildProsperityDegreeByName

      public static boolean takeGuildProsperityDegreeByName(@NotNull @NotNull String guildName, int money)
      减少公会活跃
      参数:
      guildName - 公会名称
      money - 活跃
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • setGuildProsperityDegreeByName

      public static boolean setGuildProsperityDegreeByName(@NotNull @NotNull String guildName, int money)
      设置公会活跃
      参数:
      guildName - 公会名称
      money - 活跃
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • giveGuildOreByName

      public static boolean giveGuildOreByName(@NotNull @NotNull String guildName, int money)
      增加公会矿石
      参数:
      guildName - 公会名称
      money - 活跃
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • takeGuildOreByName

      public static boolean takeGuildOreByName(@NotNull @NotNull String guildName, int money)
      减少公会矿石
      参数:
      guildName - 公会名称
      money - 活跃
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • setGuildOreByName

      public static boolean setGuildOreByName(@NotNull @NotNull String guildName, int money)
      设置公会矿石
      参数:
      guildName - 公会名称
      money - 活跃
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • givePlayerMoney

      public static boolean givePlayerMoney(@NotNull @NotNull UUID playerUuid, int money)
      增加玩家贡献
      参数:
      playerUuid - 玩家uid
      money - 贡献
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • takePlayerMoney

      public static boolean takePlayerMoney(@NotNull @NotNull UUID playerUuid, int money)
      减少玩家贡献
      参数:
      playerUuid - 玩家uid
      money - 贡献
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • setPlayerMoney

      public static boolean setPlayerMoney(@NotNull @NotNull UUID playerUuid, int money)
      设置玩家贡献
      参数:
      playerUuid - 玩家uid
      money - 贡献
      返回:
      true/成功
      从以下版本开始:
      2.0.0
    • getPlayerGuildName

      public static String getPlayerGuildName(@NotNull @NotNull UUID playerUuid)
      获取玩家公会名
      参数:
      playerUuid - 玩家uid
      返回:
      公会名
      从以下版本开始:
      2.0.0
    • getPlayerMoney

      public static Integer getPlayerMoney(@NotNull @NotNull UUID playerUuid)
      获取玩家贡献
      参数:
      playerUuid - 玩家uid
      返回:
      玩家贡献
      从以下版本开始:
      2.0.0
    • getPlayerGuildMoney

      public static Integer getPlayerGuildMoney(@NotNull @NotNull UUID playerUuid)
      获取玩家贡献资金
      参数:
      playerUuid - 玩家uid
      返回:
      玩家捐贡献资金
      从以下版本开始:
      2.0.0
    • getPlayerGuildMember

      public static List<String> getPlayerGuildMember(@NotNull @NotNull UUID playerUuid)
      获取玩家公会成员
      参数:
      playerUuid - 玩家uid
      返回:
      公会玩家名称集合
      从以下版本开始:
      2.0.0
    • getPlayerGuildRole

      public static String getPlayerGuildRole(@NotNull @NotNull UUID playerUuid)
      获取玩家公会职位
      参数:
      playerUuid - 玩家uid
      返回:
      公会职位
      从以下版本开始:
      2.0.0
    • getPlayerKill

      public static Integer getPlayerKill(@NotNull @NotNull UUID playerUuid)
      获取玩家公会战击杀次数
      参数:
      playerUuid - 玩家uid
      返回:
      玩家公会战击杀次数
      从以下版本开始:
      2.0.0
    • getPlayerDie

      public static Integer getPlayerDie(@NotNull @NotNull UUID playerUuid)
      获取玩家公会战死亡次数
      参数:
      playerUuid - 玩家uid
      返回:
      玩家公会战
      从以下版本开始:
      2.0.0
    • isPvp

      public static boolean isPvp(@NotNull @NotNull org.bukkit.entity.Player player)
      判断是否正在进行pvp
      参数:
      player - 玩家
      返回:
      true pvp中
      从以下版本开始:
      2.0.0
    • closePvp

      public static void closePvp(@NotNull @NotNull UUID playerUuid)
      关闭玩家pvp检查
      参数:
      playerUuid - 玩家uid
      从以下版本开始:
      2.0.0
    • openPvp

      public static void openPvp(@NotNull @NotNull UUID playerUuid)
      开启玩家pvp检查
      参数:
      playerUuid - 玩家uid
      从以下版本开始:
      2.0.0
    • getMatchStartPlayer

      public static List<UUID> getMatchStartPlayer(@NotNull @NotNull Integer guildId)
      根据公会id获取正在进行匹配比赛的玩家
      参数:
      guildId - 公会id
      返回:
      玩家uuid集合
      从以下版本开始:
      2.0.0
    • getSeasonStartPlayer

      public static List<UUID> getSeasonStartPlayer(@NotNull @NotNull Integer guildId)
      根据公会id获取正在进行赛季比赛的玩家
      参数:
      guildId - 公会id
      返回:
      玩家uuid集合
      从以下版本开始:
      2.0.0
    • getAllGuildName

      public static List<String> getAllGuildName()
      获取全部公会名称
      返回:
      公会名称集合
      从以下版本开始:
      2.0.0
    • getAllGuild

      public static List<GuildInfo> getAllGuild()
      获取全部公会信息
      返回:
      公会信息集合
      从以下版本开始:
      2.0.0
    • getGuildPlayer

      public static List<String> getGuildPlayer(@NotNull @NotNull String guildName)
      根据公会名称获取全部公会成员名称
      参数:
      guildName - 公会名
      返回:
      公会成员
      从以下版本开始:
      2.0.0
    • existGuild

      public static boolean existGuild(@NotNull @NotNull UUID playerUuid)
      是否有公会
      参数:
      playerUuid - 玩家uid
      从以下版本开始:
      2.0.0
    • findPlayerByGuildId

      public static List<GuildPlayer> findPlayerByGuildId(@NotNull @NotNull Integer guildId)
      根据公会 id 获取全部公会成员信息
      参数:
      guildId - 公会 id
      返回:
      公会成员
      从以下版本开始:
      2.8.7
    • findNoticeByGuildId

      public static List<GuildNotice> findNoticeByGuildId(@NotNull @NotNull Integer guildId)
      根据公会 id 获取全部公会公告
      参数:
      guildId - 公会 id
      返回:
      公会公告
      从以下版本开始:
      2.8.7
    • findShopByGuildId

      public static List<GuildShop> findShopByGuildId(@NotNull @NotNull Integer guildId)
      根据公会 id 获取全部公会商品
      参数:
      guildId - 公会 id
      返回:
      公会公告
      从以下版本开始:
      2.8.7
    • findTaskByGuildId

      public static List<GuildTask> findTaskByGuildId(@NotNull @NotNull Integer guildId)
      根据公会 id 获取全部公会任务
      参数:
      guildId - 公会 id
      返回:
      公会公告
      从以下版本开始:
      2.8.7
    • changeGuildJoinMode

      public static boolean changeGuildJoinMode(@NotNull @NotNull UUID playerUuid, boolean joinMode)
      修改公会加入模式
      参数:
      playerUuid - 操作玩家uid
      joinMode - true 会长审批,false 自动审批
      返回:
      true/成功
      从以下版本开始:
      2.19.3
    • changeGuildPvpStatus

      public static boolean changeGuildPvpStatus(@NotNull @NotNull UUID playerUuid, boolean pvpStatus)
      修改公会成员PVP状态
      参数:
      playerUuid - 操作玩家uid
      pvpStatus - true 开启,false 关闭
      返回:
      true/成功
      从以下版本开始:
      2.19.3
    • publishGuildNotice

      public static void publishGuildNotice(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String notice)
      发布公会公告
      参数:
      player - 玩家
      notice - 公告,格式为标题#内容
      从以下版本开始:
      2.19.3
    • deleteGuildNotice

      public static boolean deleteGuildNotice(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Integer noticeId)
      删除公会公告
      参数:
      playerUuid - 操作玩家uid
      noticeId - 公告id
      返回:
      true/成功
      从以下版本开始:
      2.19.3
    • markGuildNoticeRead

      public static boolean markGuildNoticeRead(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Integer noticeId)
      标记公会公告已读
      参数:
      playerUuid - 玩家uid
      noticeId - 公告id
      返回:
      true/成功或已经标记已读
      从以下版本开始:
      2.19.3
    • findTaskProgressByGuildId

      public static List<GuildTask> findTaskProgressByGuildId(@NotNull @NotNull Integer guildId)
      查询公会任务详细进度
      参数:
      guildId - 公会id
      返回:
      公会任务及其目标进度
      从以下版本开始:
      2.19.3
    • claimGuildTaskReward

      public static boolean claimGuildTaskReward(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Integer guildTaskId)
      领取公会任务奖励
      参数:
      playerUuid - 操作玩家uid
      guildTaskId - 公会任务id
      返回:
      true/成功
      从以下版本开始:
      2.19.3
    • findPendingApplyByGuildId

      public static List<GuildApply> findPendingApplyByGuildId(@NotNull @NotNull Integer guildId)
      查询公会待审批申请
      参数:
      guildId - 公会id
      返回:
      待审批申请
      从以下版本开始:
      2.19.3
    • signInPlayer

      public static boolean signInPlayer(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String type)
      玩家签到
      参数:
      player - 玩家
      type - 签到类型(point/vault/ply)
      返回:
      true/签到成功
      从以下版本开始:
      2.19.4
    • isPlayerSignedInToday

      public static boolean isPlayerSignedInToday(@NotNull @NotNull UUID playerUuid)
      查询玩家当天是否已签到
      参数:
      playerUuid - 玩家uid
      返回:
      true/已签到
      从以下版本开始:
      2.19.3
    • startGuildShopSell

      public static void startGuildShopSell(@NotNull @NotNull org.bukkit.entity.Player player)
      进入公会商品上架流程
      参数:
      player - 玩家
      从以下版本开始:
      2.19.4