public class BukkitPlayer
extends com.sk89q.worldedit.bukkit.BukkitPlayer
implements com.sk89q.worldguard.LocalPlayer
| Modifier and Type | Field and Description |
|---|---|
protected WorldGuardPlugin |
plugin |
| Constructor and Description |
|---|
BukkitPlayer(WorldGuardPlugin plugin,
org.bukkit.entity.Player player) |
| Modifier and Type | Method and Description |
|---|---|
void |
ban(java.lang.String msg) |
float |
getExhaustion() |
int |
getFireTicks() |
double |
getFoodLevel() |
java.lang.String[] |
getGroups() |
double |
getHealth() |
double |
getMaxHealth() |
java.lang.String |
getName() |
long |
getPlayerTimeOffset() |
com.sk89q.worldedit.world.weather.WeatherType |
getPlayerWeather() |
double |
getSaturation() |
boolean |
hasGroup(java.lang.String group) |
boolean |
hasPermission(java.lang.String perm) |
boolean |
isPlayerTimeRelative() |
void |
kick(java.lang.String msg) |
void |
printRaw(java.lang.String msg) |
void |
resetPlayerTime() |
void |
resetPlayerWeather() |
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) |
dispatchCUIEvent, floatAt, getBlockInHand, getDisplayName, getFacet, getGameMode, getInventoryBlockBag, getItemInHand, getLocation, getPlayer, getSessionKey, getState, getUniqueId, getWorld, giveItem, print, printDebug, printError, sendFakeBlock, setGameMode, setLocation, setPositionascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, canDestroyBedrock, checkPermission, clone, descendLevel, equals, findFreePosition, findFreePosition, getBlockIn, getBlockOn, getBlockTrace, getBlockTrace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getExtent, getSolidBlockTrace, hashCode, isHoldingPickAxe, isPlayer, openFileOpenDialog, openFileSaveDialog, passThroughForwardWall, remove, setOnGround, setPositionfinalize, getClass, notify, notifyAll, toString, wait, wait, waitascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, descendLevel, findFreePosition, findFreePosition, floatAt, getBlockIn, getBlockInHand, getBlockOn, getBlockTrace, getBlockTrace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getGameMode, getInventoryBlockBag, getItemInHand, getSolidBlockTrace, getWorld, giveItem, isHoldingPickAxe, passThroughForwardWall, sendFakeBlock, setGameMode, setOnGround, setPosition, setPositiongetExtent, getLocation, getState, remove, setLocationprotected final WorldGuardPlugin plugin
public BukkitPlayer(WorldGuardPlugin plugin, org.bukkit.entity.Player player)
public java.lang.String getName()
getName in interface com.sk89q.worldedit.extension.platform.ActorgetName in class com.sk89q.worldedit.bukkit.BukkitPlayerpublic boolean hasGroup(java.lang.String group)
hasGroup in interface com.sk89q.worldguard.LocalPlayerpublic void kick(java.lang.String msg)
kick in interface com.sk89q.worldguard.LocalPlayerpublic void ban(java.lang.String msg)
ban in interface com.sk89q.worldguard.LocalPlayerpublic double getHealth()
getHealth in interface com.sk89q.worldguard.LocalPlayerpublic void setHealth(double health)
setHealth in interface com.sk89q.worldguard.LocalPlayerpublic double getMaxHealth()
getMaxHealth in interface com.sk89q.worldguard.LocalPlayerpublic double getFoodLevel()
getFoodLevel in interface com.sk89q.worldguard.LocalPlayerpublic void setFoodLevel(double foodLevel)
setFoodLevel in interface com.sk89q.worldguard.LocalPlayerpublic double getSaturation()
getSaturation in interface com.sk89q.worldguard.LocalPlayerpublic void setSaturation(double saturation)
setSaturation in interface com.sk89q.worldguard.LocalPlayerpublic float getExhaustion()
getExhaustion in interface com.sk89q.worldguard.LocalPlayerpublic void setExhaustion(float exhaustion)
setExhaustion in interface com.sk89q.worldguard.LocalPlayerpublic com.sk89q.worldedit.world.weather.WeatherType getPlayerWeather()
getPlayerWeather in interface com.sk89q.worldguard.LocalPlayerpublic void setPlayerWeather(com.sk89q.worldedit.world.weather.WeatherType weather)
setPlayerWeather in interface com.sk89q.worldguard.LocalPlayerpublic void resetPlayerWeather()
resetPlayerWeather in interface com.sk89q.worldguard.LocalPlayerpublic boolean isPlayerTimeRelative()
isPlayerTimeRelative in interface com.sk89q.worldguard.LocalPlayerpublic long getPlayerTimeOffset()
getPlayerTimeOffset in interface com.sk89q.worldguard.LocalPlayerpublic void setPlayerTime(long time,
boolean relative)
setPlayerTime in interface com.sk89q.worldguard.LocalPlayerpublic void resetPlayerTime()
resetPlayerTime in interface com.sk89q.worldguard.LocalPlayerpublic int getFireTicks()
getFireTicks in interface com.sk89q.worldguard.LocalPlayerpublic void setFireTicks(int fireTicks)
setFireTicks in interface com.sk89q.worldguard.LocalPlayerpublic void setCompassTarget(com.sk89q.worldedit.util.Location location)
setCompassTarget in interface com.sk89q.worldguard.LocalPlayerpublic java.lang.String[] getGroups()
getGroups in interface com.sk89q.worldedit.util.auth.SubjectgetGroups in class com.sk89q.worldedit.bukkit.BukkitPlayerpublic void printRaw(java.lang.String msg)
printRaw in interface com.sk89q.worldedit.extension.platform.ActorprintRaw in class com.sk89q.worldedit.bukkit.BukkitPlayerpublic boolean hasPermission(java.lang.String perm)
hasPermission in interface com.sk89q.worldedit.util.auth.SubjecthasPermission in class com.sk89q.worldedit.bukkit.BukkitPlayer