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.Player checkPlayer​(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • checkPlayer

      public static org.bukkit.entity.Player checkPlayer​(org.bukkit.command.CommandSender sender) throws com.sk89q.minecraft.util.commands.CommandException
      Checks 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 -