public class BukkitCommandSender extends Object implements Actor
| Constructor and Description |
|---|
BukkitCommandSender(WorldEditPlugin plugin,
org.bukkit.command.CommandSender sender) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDestroyBedrock()
Returns true if the actor can destroy bedrock.
|
void |
checkPermission(String permission)
Check whether this subject has been granted the given permission
and throw an exception on error.
|
void |
dispatchCUIEvent(CUIEvent event)
Send a CUI event.
|
String[] |
getGroups()
Get a list of groups that this subject is a part of.
|
String |
getName()
Get the name of the actor.
|
SessionKey |
getSessionKey()
Get an object describing this session.
|
UUID |
getUniqueId()
Get the UUID for this object.
|
boolean |
hasPermission(String perm)
Return whether this subject has the given permission.
|
boolean |
isPlayer()
Return whether this actor is a player.
|
File |
openFileOpenDialog(String[] extensions)
Open a file open dialog.
|
File |
openFileSaveDialog(String[] extensions)
Open a file save dialog.
|
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.
|
public BukkitCommandSender(WorldEditPlugin plugin, org.bukkit.command.CommandSender sender)
public UUID getUniqueId()
IdentifiablegetUniqueId in interface Identifiablepublic void print(String msg)
Actorpublic void printDebug(String msg)
ActorprintDebug in interface Actormsg - The message textpublic void printError(String msg)
ActorprintError in interface Actormsg - The error message textpublic boolean canDestroyBedrock()
ActorcanDestroyBedrock in interface Actorpublic String[] getGroups()
Subjectpublic boolean hasPermission(String perm)
SubjecthasPermission in interface Subjectperm - the permissionpublic void checkPermission(String permission) throws AuthorizationException
SubjectcheckPermission in interface Subjectpermission - the permissionAuthorizationException - thrown if not permittedpublic boolean isPlayer()
Actorpublic File openFileOpenDialog(String[] extensions)
ActoropenFileOpenDialog in interface Actorextensions - null to allow allpublic File openFileSaveDialog(String[] extensions)
ActoropenFileSaveDialog in interface Actorextensions - null to allow allpublic void dispatchCUIEvent(CUIEvent event)
ActordispatchCUIEvent in interface Actorevent - the eventpublic SessionKey getSessionKey()
SessionOwnergetSessionKey in interface SessionOwnerCopyright © 2010-2014. All Rights Reserved.