public class BukkitCommandSender extends LocalPlayer
server| Constructor and Description |
|---|
BukkitCommandSender(WorldEditPlugin plugin,
ServerInterface server,
org.bukkit.command.CommandSender sender) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getGroups()
Get a player's list of groups.
|
BlockBag |
getInventoryBlockBag()
Get this player's block bag.
|
int |
getItemInHand()
Get the ID of the item that the player is holding.
|
String |
getName()
Get the name of the player.
|
double |
getPitch()
Get the player's view pitch.
|
WorldVector |
getPosition()
Get the player's position.
|
LocalWorld |
getWorld()
Get the player's world.
|
double |
getYaw()
Get the player's view yaw.
|
void |
giveItem(int type,
int amt)
Gives the player an item.
|
boolean |
hasPermission(String perm)
Checks if a player has permission.
|
boolean |
isPlayer() |
void |
print(String msg)
Print a WorldEdit message.
|
void |
printDebug(String msg)
Print a WorldEdit message.
|
void |
printError(String msg)
Print a WorldEdit error.
|
void |
printRaw(String msg)
Print a message.
|
void |
setPosition(Vector pos,
float pitch,
float yaw)
Move the player.
|
ascendLevel, ascendToCeiling, ascendToCeiling, ascendUpwards, ascendUpwards, canDestroyBedrock, checkPermission, descendLevel, dispatchCUIEvent, dispatchCUIHandshake, equals, findFreePosition, findFreePosition, floatAt, getBlockIn, getBlockInHand, getBlockOn, getBlockTrace, getBlockTrace, getBlockTraceFace, getCardinalDirection, getCardinalDirection, getSolidBlockTrace, hasCreativeMode, hashCode, isHoldingPickAxe, openFileOpenDialog, openFileSaveDialog, passThroughForwardWall, setOnGround, setPositionpublic BukkitCommandSender(WorldEditPlugin plugin, ServerInterface server, org.bukkit.command.CommandSender sender)
public String getName()
LocalPlayergetName in class LocalPlayerpublic void printRaw(String msg)
LocalPlayerprintRaw in class LocalPlayermsg - The message textpublic void print(String msg)
LocalPlayerprint in class LocalPlayermsg - The message textpublic void printDebug(String msg)
LocalPlayerprintDebug in class LocalPlayermsg - The message textpublic void printError(String msg)
LocalPlayerprintError in class LocalPlayermsg - The error message textpublic String[] getGroups()
LocalPlayergetGroups in class LocalPlayerpublic boolean hasPermission(String perm)
LocalPlayerhasPermission in class LocalPlayerperm - The permission to checkpublic boolean isPlayer()
isPlayer in class LocalPlayerpublic int getItemInHand()
LocalPlayergetItemInHand in class LocalPlayerpublic WorldVector getPosition()
LocalPlayergetPosition in class LocalPlayerpublic LocalWorld getWorld()
LocalPlayergetWorld in class LocalPlayerpublic double getPitch()
LocalPlayergetPitch in class LocalPlayerpublic double getYaw()
LocalPlayergetYaw in class LocalPlayerpublic void giveItem(int type,
int amt)
LocalPlayergiveItem in class LocalPlayertype - The item id of the item to be given to the playeramt - How many items in the stackpublic void setPosition(Vector pos, float pitch, float yaw)
LocalPlayersetPosition in class LocalPlayerpos - Where to move thempitch - The pitch (up/down) of the player's viewyaw - The yaw (left/right) of the player's viewpublic BlockBag getInventoryBlockBag()
LocalPlayergetInventoryBlockBag in class LocalPlayerCopyright © 2010-2014. All Rights Reserved.