Class PlayerUtil
java.lang.Object
com.sk89q.commandbook.util.entity.player.PlayerUtil
public class PlayerUtil
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description PlayerUtil() -
Method Summary
Modifier and Type Method Description static org.bukkit.entity.PlayercheckPlayer(org.bukkit.command.CommandSender sender)Checks to see if the sender is a player, otherwise throw an exception.static java.util.concurrent.CompletableFuture<java.lang.Boolean>teleportTo(org.bukkit.command.CommandSender sender, org.bukkit.entity.Player player, org.bukkit.Location target, boolean allowVehicles)Teleports a player with vehicle support
-
Constructor Details
-
PlayerUtil
public PlayerUtil()
-
-
Method Details
-
checkPlayer
public static org.bukkit.entity.Player checkPlayer(org.bukkit.command.CommandSender sender) throws com.sk89q.minecraft.util.commands.CommandExceptionChecks to see if the sender is a player, otherwise throw an exception.- Parameters:
sender-- Returns:
- Throws:
com.sk89q.minecraft.util.commands.CommandException
-
teleportTo
public static java.util.concurrent.CompletableFuture<java.lang.Boolean> teleportTo(org.bukkit.command.CommandSender sender, org.bukkit.entity.Player player, org.bukkit.Location target, boolean allowVehicles)Teleports a player with vehicle support- Parameters:
sender-player-target-allowVehicles-
-