类 PlayerSchedulerUtil

java.lang.Object
cn.handyplus.lib.adapter.PlayerSchedulerUtil

public class PlayerSchedulerUtil extends Object
玩家相关调度器
从以下版本开始:
1.0.4
  • 方法概要

    修饰符和类型
    方法
    说明
    static void
    closeInventory(@NotNull org.bukkit.entity.Player player)
    玩家关闭gui
    static void
    dispatchCommand(@NotNull String command)
    控制台执行命令
    static void
    dropItem(@NotNull org.bukkit.entity.Player player, @NotNull List<org.bukkit.inventory.ItemStack> dropItemList)
    掉落物品处理
    static void
    dropItem(@NotNull org.bukkit.entity.Player player, @NotNull List<org.bukkit.inventory.ItemStack> dropItemList, long delay)
    掉落物品处理
    static void
    openInventory(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.Inventory inventory)
    玩家打开gui
    static void
    performCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command)
    玩家执行命令
    static void
    performCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command, boolean isChat)
    玩家执行命令
    static void
    performOpCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command)
    玩家已OP身份执行命令
    static void
    performOpCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command, boolean isChat)
    玩家已OP身份执行命令
    static void
    performReplaceCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command)
    调度玩家执行替换命令
    static void
    playerPerformCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command)
    玩家执行命令 performCommand 方式
    static void
    playSound(@NotNull org.bukkit.entity.Player player, @NotNull String sound, float volume, float pitch)
    调度播放声音
    static void
    playSound(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Sound sound, float volume, float pitch)
    调度播放声音
  • 方法详细资料

    • playSound

      public static void playSound(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.Sound sound, float volume, float pitch)
      调度播放声音
      参数:
      player - 玩家
      sound - 声音
      volume - 音量
      pitch - 音调
      从以下版本开始:
      1.0.7
    • playSound

      public static void playSound(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String sound, float volume, float pitch)
      调度播放声音
      参数:
      player - 玩家
      sound - 声音 例: entity.item.pickup
      volume - 音量 例: 1F
      pitch - 音调 例: 1F
      从以下版本开始:
      1.1.6
    • performReplaceCommand

      public static void performReplaceCommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String command)
      调度玩家执行替换命令
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.0.8
    • dropItem

      public static void dropItem(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull List<org.bukkit.inventory.ItemStack> dropItemList)
      掉落物品处理
      参数:
      player - 玩家
      dropItemList - 掉落物品
      从以下版本开始:
      1.2.0
    • dropItem

      public static void dropItem(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull List<org.bukkit.inventory.ItemStack> dropItemList, long delay)
      掉落物品处理
      参数:
      player - 玩家
      dropItemList - 掉落物品
      delay - 延迟时间
      从以下版本开始:
      1.2.6
    • performOpCommand

      public static void performOpCommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String command)
      玩家已OP身份执行命令
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.1.5
    • performOpCommand

      public static void performOpCommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String command, boolean isChat)
      玩家已OP身份执行命令
      参数:
      player - 玩家
      command - 命令
      isChat - 是否chat模式
      从以下版本开始:
      1.1.5
    • performCommand

      public static void performCommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String command)
      玩家执行命令
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.1.5
    • playerPerformCommand

      public static void playerPerformCommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String command)
      玩家执行命令 performCommand 方式
      参数:
      player - 玩家
      command - 命令
      从以下版本开始:
      1.1.2
    • performCommand

      public static void performCommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String command, boolean isChat)
      玩家执行命令
      参数:
      player - 玩家
      command - 命令
      isChat - 是否chat模式
      从以下版本开始:
      1.1.5
    • dispatchCommand

      public static void dispatchCommand(@NotNull @NotNull String command)
      控制台执行命令
      参数:
      command - 命令
      从以下版本开始:
      1.1.5
    • openInventory

      public static void openInventory(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.inventory.Inventory inventory)
      玩家打开gui
      参数:
      player - 玩家
      inventory - 背包
      从以下版本开始:
      1.1.8
    • closeInventory

      public static void closeInventory(@NotNull @NotNull org.bukkit.entity.Player player)
      玩家关闭gui
      参数:
      player - 玩家
      从以下版本开始:
      1.1.9