类 PlayerSchedulerUtil
java.lang.Object
cn.handyplus.lib.adapter.PlayerSchedulerUtil
玩家相关调度器
- 从以下版本开始:
- 1.0.4
- 作者:
- handy
-
方法概要
修饰符和类型方法说明static voidaddPotionEffects(org.bukkit.entity.Player player, List<org.bukkit.potion.PotionEffect> potionEffectList) 玩家添加药水效果 同步static voidperformCommand(org.bukkit.entity.Player player, String command) 玩家执行命令static voidperformOpCommand(org.bukkit.entity.Player player, String command) 玩家执行命令static voidremovePotionEffect(org.bukkit.entity.Player player, org.bukkit.potion.PotionEffectType potionEffect) 玩家移除药水效果 同步static voidsyncPerformCommand(org.bukkit.entity.Player player, String command) 玩家执行命令 同步static voidsyncPerformOpCommand(org.bukkit.entity.Player player, String command) 玩家执行命令 同步static voidsyncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target) 传送实体 同步static voidsyncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) 传送实体 同步static booleanteleport(org.bukkit.entity.Entity entity, org.bukkit.Location target) 传送实体static booleanteleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) 传送实体
-
方法详细资料
-
teleport
public static boolean teleport(org.bukkit.entity.Entity entity, org.bukkit.Location target) 传送实体- 参数:
entity- 需要传送的实体target- 目的地- 返回:
- 传送结果
-
teleport
public static boolean teleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) 传送实体- 参数:
entity- 需要传送的实体target- 传送目的地cause- 传送原因- 返回:
- 传送结果
-
syncTeleport
public static void syncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target) 传送实体 同步- 参数:
entity- 需要传送的实体target- 传送目的地
-
syncTeleport
public static void syncTeleport(org.bukkit.entity.Entity entity, org.bukkit.Location target, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) 传送实体 同步- 参数:
entity- 需要传送的实体target- 传送目的地cause- 传送原因
-
performCommand
玩家执行命令- 参数:
player- 玩家command- 命令
-
syncPerformCommand
玩家执行命令 同步- 参数:
player- 玩家command- 命令
-
performOpCommand
玩家执行命令- 参数:
player- 玩家command- 命令
-
syncPerformOpCommand
玩家执行命令 同步- 参数:
player- 玩家command- 命令
-
addPotionEffects
public static void addPotionEffects(org.bukkit.entity.Player player, List<org.bukkit.potion.PotionEffect> potionEffectList) 玩家添加药水效果 同步- 参数:
player- 玩家potionEffectList- 药水效果
-
removePotionEffect
public static void removePotionEffect(org.bukkit.entity.Player player, org.bukkit.potion.PotionEffectType potionEffect) 玩家移除药水效果 同步- 参数:
player- 玩家potionEffect- 药水效果
-