类 PlayerTaskApi

java.lang.Object
com.handy.playertask.api.PlayerTaskApi

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

    • getInstance

      public static PlayerTaskApi getInstance()
      获取实例
      返回:
      PlayerTaskApi
    • findDetailByTaskId

      public TaskList findDetailByTaskId(@NotNull @NotNull Integer taskId)
      根据任务id查询任务详情
      参数:
      taskId - 任务id
      返回:
      任务详情
      从以下版本开始:
      1.11.0
    • reward

      public boolean reward(@NotNull @NotNull List<org.bukkit.entity.Player> playerList, @NotNull @NotNull List<Integer> taskRewardIdList)
      发送奖励
      参数:
      playerList - 玩家列表
      taskRewardIdList - 奖励内容ids
      返回:
      true 成功
    • findAmountByPlayer

      @Deprecated public Integer findAmountByPlayer(@NotNull @NotNull org.bukkit.entity.Player player)
      已过时。
      任务币数量
      参数:
      player - 玩家
      返回:
      任务币数量
      从以下版本开始:
      1.11.0
    • findAmountByPlayer

      @Deprecated public Integer findAmountByPlayer(@NotNull @NotNull String playerName)
      已过时。
      任务币数量
      参数:
      playerName - 玩家名
      返回:
      任务币数量
      从以下版本开始:
      1.11.0
    • findAmountByPlayer

      public Integer findAmountByPlayer(@NotNull @NotNull UUID playerUuid)
      任务币数量
      参数:
      playerUuid - 玩家Uid
      返回:
      任务币数量
      从以下版本开始:
      2.0.0
    • addCoin

      @Deprecated public boolean addCoin(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Integer amount)
      已过时。
      添加玩家任务币数量
      参数:
      player - 玩家
      amount - 数量
      返回:
      true 成功
      从以下版本开始:
      1.11.0
    • addCoin

      @Deprecated public boolean addCoin(@NotNull @NotNull String playerName, @NotNull @NotNull Integer amount)
      已过时。
      添加玩家任务币数量
      参数:
      playerName - 玩家名
      amount - 数量
      返回:
      true 成功
      从以下版本开始:
      1.11.0
    • addCoin

      public boolean addCoin(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Integer amount)
      添加玩家任务币数量
      参数:
      playerUuid - 玩家Uid
      amount - 数量
      返回:
      true 成功
      从以下版本开始:
      2.0.0
    • subtractCoin

      @Deprecated public boolean subtractCoin(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Integer amount)
      已过时。
      减少玩家任务币数量
      参数:
      player - 玩家
      amount - 数量
      返回:
      true 成功
      从以下版本开始:
      1.11.0
    • subtractCoin

      @Deprecated public boolean subtractCoin(@NotNull @NotNull String playerName, @NotNull @NotNull Integer amount)
      已过时。
      减少玩家任务币数量
      参数:
      playerName - 玩家名
      amount - 数量
      返回:
      true 成功
      从以下版本开始:
      1.11.0
    • subtractCoin

      public boolean subtractCoin(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Integer amount)
      减少玩家任务币数量
      参数:
      playerUuid - 玩家Uid
      amount - 数量
      返回:
      true 成功
      从以下版本开始:
      2.0.0
    • setCoin

      @Deprecated public boolean setCoin(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Integer amount)
      已过时。
      设置玩家任务币数量
      参数:
      player - 玩家
      amount - 数量
      返回:
      true成功/false失败
      从以下版本开始:
      1.13.2
    • setCoin

      @Deprecated public boolean setCoin(@NotNull @NotNull String playerName, @NotNull @NotNull Integer amount)
      已过时。
      设置玩家任务币数量
      参数:
      playerName - 玩家名
      amount - 数量
      返回:
      true成功/false失败
      从以下版本开始:
      1.13.2
    • setCoin

      public boolean setCoin(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull Integer amount)
      设置玩家任务币数量
      参数:
      playerUuid - 玩家Uid
      amount - 数量
      返回:
      true成功/false失败
      从以下版本开始:
      2.0.0
    • sendTaskFinishMsg

      public void sendTaskFinishMsg(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String taskName)
      发送任务完成提醒
      参数:
      player - 玩家
      taskName - 任务名
      从以下版本开始:
      1.14.0
    • sendTaskManagerMsg

      public void sendTaskManagerMsg(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String taskName)
      发送任务小目标完成消息
      参数:
      player - 玩家
      taskName - 任务名
      从以下版本开始:
      1.14.0
    • sendCurrentProgressMsg

      public void sendCurrentProgressMsg(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String demandType, @NotNull @NotNull Integer amount, @NotNull @NotNull Integer completionAmount, @NotNull @NotNull String content)
      发送当前进度消息
      参数:
      player - 玩家
      demandType - 类型
      amount - 数量
      completionAmount - 已完成数量
      content - 要求
      从以下版本开始:
      1.14.0
    • taskScheduleReplaceMap

      public static List<String> taskScheduleReplaceMap(@NotNull @NotNull List<TaskPlayerDemand> taskPlayerDemands)
      任务目标进度替换map
      参数:
      taskPlayerDemands - 任务目标
      返回:
      map
      从以下版本开始:
      2.3.8