Class BukkitPlayer

java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractPlayerActor
com.sk89q.worldedit.bukkit.BukkitPlayer
com.sk89q.worldguard.bukkit.BukkitPlayer
All Implemented Interfaces:
com.sk89q.worldedit.entity.Entity, com.sk89q.worldedit.entity.Player, com.sk89q.worldedit.extension.platform.Actor, com.sk89q.worldedit.extension.platform.Locatable, com.sk89q.worldedit.session.SessionOwner, com.sk89q.worldedit.util.auth.Subject, com.sk89q.worldedit.util.Faceted, com.sk89q.worldedit.util.Identifiable, com.sk89q.worldguard.LocalPlayer, com.sk89q.worldguard.protection.association.RegionAssociable, Cloneable

public class BukkitPlayer extends com.sk89q.worldedit.bukkit.BukkitPlayer implements com.sk89q.worldguard.LocalPlayer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final WorldGuardPlugin
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitPlayer(WorldGuardPlugin plugin, org.bukkit.entity.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ban(String msg)
     
    float
     
    int
     
    double
     
     
    double
     
    double
     
     
    long
     
    com.sk89q.worldedit.world.weather.WeatherType
     
    double
     
    boolean
     
    boolean
     
    boolean
     
    void
    kick(String msg)
     
    void
     
    void
     
    void
     
    void
     
    void
    sendTitle(String title, String subtitle)
     
    void
    setCompassTarget(com.sk89q.worldedit.util.Location location)
     
    void
    setExhaustion(float exhaustion)
     
    void
    setFireTicks(int fireTicks)
     
    void
    setFoodLevel(double foodLevel)
     
    void
    setHealth(double health)
     
    void
    setPlayerTime(long time, boolean relative)
     
    void
    setPlayerWeather(com.sk89q.worldedit.world.weather.WeatherType weather)
     
    void
    setSaturation(double saturation)
     
    void
    teleport(com.sk89q.worldedit.util.Location location, String successMessage, String failMessage)
     

    Methods inherited from class com.sk89q.worldedit.bukkit.BukkitPlayer

    dispatchCUIEvent, getBlockInHand, getDisplayName, getFacet, getGameMode, getInventoryBlockBag, getItemInHand, getLocale, getLocation, getPlayer, getSessionKey, getState, getUniqueId, getWorld, giveItem, isAllowedToFly, print, print, printDebug, printError, sendAnnouncements, sendFakeBlock, setFlying, setGameMode, setLocation, trySetPosition

    Methods inherited from class com.sk89q.worldedit.extension.platform.AbstractPlayerActor

    ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, canDestroyBedrock, checkPermission, clone, descendLevel, equals, findFreePosition, findFreePosition, floatAt, getBlockOn, getBlockTrace, getBlockTrace, getBlockTrace, getBlockTraceFace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getExtent, getSolidBlockTrace, hashCode, isHoldingPickAxe, isPlayer, openFileOpenDialog, openFileSaveDialog, passThroughForwardWall, remove, setOnGround, trySetPosition

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.sk89q.worldedit.extension.platform.Actor

    canDestroyBedrock, dispatchCUIEvent, getDisplayName, getLocale, isPlayer, openFileOpenDialog, openFileSaveDialog, print, print, printDebug, printDebug, printError, printError, printInfo, sendAnnouncements

    Methods inherited from interface com.sk89q.worldedit.entity.Entity

    getState, remove

    Methods inherited from interface com.sk89q.worldedit.util.Faceted

    getFacet

    Methods inherited from interface com.sk89q.worldedit.util.Identifiable

    getUniqueId

    Methods inherited from interface com.sk89q.worldguard.LocalPlayer

    getAssociation

    Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable

    getBlockLocation, getExtent, getLocation, setLocation, setPosition, trySetPosition

    Methods inherited from interface com.sk89q.worldedit.entity.Player

    ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, descendLevel, findFreePosition, findFreePosition, floatAt, getBlockIn, getBlockInHand, getBlockOn, getBlockTrace, getBlockTrace, getBlockTrace, getBlockTraceFace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getGameMode, getInventoryBlockBag, getItemInHand, getSolidBlockTrace, getWorld, giveItem, isHoldingPickAxe, passThroughForwardWall, sendFakeBlock, setGameMode, setOnGround, setPosition, trySetPosition

    Methods inherited from interface com.sk89q.worldedit.session.SessionOwner

    getSessionKey

    Methods inherited from interface com.sk89q.worldedit.util.auth.Subject

    checkPermission
  • Field Details

  • Constructor Details

    • BukkitPlayer

      public BukkitPlayer(WorldGuardPlugin plugin, org.bukkit.entity.Player player)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface com.sk89q.worldedit.extension.platform.Actor
      Overrides:
      getName in class com.sk89q.worldedit.bukkit.BukkitPlayer
    • hasGroup

      public boolean hasGroup(String group)
      Specified by:
      hasGroup in interface com.sk89q.worldguard.LocalPlayer
    • kick

      public void kick(String msg)
      Specified by:
      kick in interface com.sk89q.worldguard.LocalPlayer
    • ban

      public void ban(String msg)
      Specified by:
      ban in interface com.sk89q.worldguard.LocalPlayer
    • getHealth

      public double getHealth()
      Specified by:
      getHealth in interface com.sk89q.worldguard.LocalPlayer
    • setHealth

      public void setHealth(double health)
      Specified by:
      setHealth in interface com.sk89q.worldguard.LocalPlayer
    • getMaxHealth

      public double getMaxHealth()
      Specified by:
      getMaxHealth in interface com.sk89q.worldguard.LocalPlayer
    • getFoodLevel

      public double getFoodLevel()
      Specified by:
      getFoodLevel in interface com.sk89q.worldguard.LocalPlayer
    • setFoodLevel

      public void setFoodLevel(double foodLevel)
      Specified by:
      setFoodLevel in interface com.sk89q.worldguard.LocalPlayer
    • getSaturation

      public double getSaturation()
      Specified by:
      getSaturation in interface com.sk89q.worldguard.LocalPlayer
    • setSaturation

      public void setSaturation(double saturation)
      Specified by:
      setSaturation in interface com.sk89q.worldguard.LocalPlayer
    • getExhaustion

      public float getExhaustion()
      Specified by:
      getExhaustion in interface com.sk89q.worldguard.LocalPlayer
    • setExhaustion

      public void setExhaustion(float exhaustion)
      Specified by:
      setExhaustion in interface com.sk89q.worldguard.LocalPlayer
    • getPlayerWeather

      public com.sk89q.worldedit.world.weather.WeatherType getPlayerWeather()
      Specified by:
      getPlayerWeather in interface com.sk89q.worldguard.LocalPlayer
    • setPlayerWeather

      public void setPlayerWeather(com.sk89q.worldedit.world.weather.WeatherType weather)
      Specified by:
      setPlayerWeather in interface com.sk89q.worldguard.LocalPlayer
    • resetPlayerWeather

      public void resetPlayerWeather()
      Specified by:
      resetPlayerWeather in interface com.sk89q.worldguard.LocalPlayer
    • isPlayerTimeRelative

      public boolean isPlayerTimeRelative()
      Specified by:
      isPlayerTimeRelative in interface com.sk89q.worldguard.LocalPlayer
    • getPlayerTimeOffset

      public long getPlayerTimeOffset()
      Specified by:
      getPlayerTimeOffset in interface com.sk89q.worldguard.LocalPlayer
    • setPlayerTime

      public void setPlayerTime(long time, boolean relative)
      Specified by:
      setPlayerTime in interface com.sk89q.worldguard.LocalPlayer
    • resetPlayerTime

      public void resetPlayerTime()
      Specified by:
      resetPlayerTime in interface com.sk89q.worldguard.LocalPlayer
    • getFireTicks

      public int getFireTicks()
      Specified by:
      getFireTicks in interface com.sk89q.worldguard.LocalPlayer
    • setFireTicks

      public void setFireTicks(int fireTicks)
      Specified by:
      setFireTicks in interface com.sk89q.worldguard.LocalPlayer
    • setCompassTarget

      public void setCompassTarget(com.sk89q.worldedit.util.Location location)
      Specified by:
      setCompassTarget in interface com.sk89q.worldguard.LocalPlayer
    • sendTitle

      public void sendTitle(String title, String subtitle)
      Specified by:
      sendTitle in interface com.sk89q.worldguard.LocalPlayer
    • resetFallDistance

      public void resetFallDistance()
      Specified by:
      resetFallDistance in interface com.sk89q.worldguard.LocalPlayer
    • teleport

      public void teleport(com.sk89q.worldedit.util.Location location, String successMessage, String failMessage)
      Specified by:
      teleport in interface com.sk89q.worldguard.LocalPlayer
    • getGroups

      public String[] getGroups()
      Specified by:
      getGroups in interface com.sk89q.worldedit.util.auth.Subject
      Overrides:
      getGroups in class com.sk89q.worldedit.bukkit.BukkitPlayer
    • printRaw

      public void printRaw(String msg)
      Specified by:
      printRaw in interface com.sk89q.worldedit.extension.platform.Actor
      Overrides:
      printRaw in class com.sk89q.worldedit.bukkit.BukkitPlayer
    • hasPermission

      public boolean hasPermission(String perm)
      Specified by:
      hasPermission in interface com.sk89q.worldedit.util.auth.Subject
      Overrides:
      hasPermission in class com.sk89q.worldedit.bukkit.BukkitPlayer