类 PlayerSchedulerUtil
java.lang.Object
cn.handyplus.lib.adapter.PlayerSchedulerUtil
-
方法概要
修饰符和类型方法说明static voidcloseInventory(@NotNull org.bukkit.entity.Player player) 玩家关闭guistatic voiddispatchCommand(@NotNull String command) 控制台执行命令static voiddropItem(@NotNull org.bukkit.entity.Player player, @NotNull List<org.bukkit.inventory.ItemStack> dropItemList) 掉落物品处理static voiddropItem(@NotNull org.bukkit.entity.Player player, @NotNull List<org.bukkit.inventory.ItemStack> dropItemList, long delay) 掉落物品处理static voidopenInventory(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.inventory.Inventory inventory) 玩家打开guistatic voidperformCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command) 玩家执行命令static voidperformCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command, boolean isChat) 玩家执行命令static voidperformOpCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command) 玩家已OP身份执行命令static voidperformOpCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command, boolean isChat) 玩家已OP身份执行命令static voidperformReplaceCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command) 调度玩家执行替换命令static voidplayerPerformCommand(@NotNull org.bukkit.entity.Player player, @NotNull String command) 玩家执行命令 performCommand 方式static voidplaySound(@NotNull org.bukkit.entity.Player player, @NotNull String sound, float volume, float pitch) 调度播放声音static voidplaySound(@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.pickupvolume- 音量 例: 1Fpitch- 音调 例: 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
控制台执行命令- 参数:
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
-