public class RuntimeCommandSender extends Object implements CommandSender
CommandSender which outputs to a Logger. This is
specifically made with the intention of unit testing without running a Bukkit
environment| Constructor and Description |
|---|
RuntimeCommandSender() |
| Modifier and Type | Method and Description |
|---|---|
PermissionAttachment |
addAttachment(Plugin plugin) |
PermissionAttachment |
addAttachment(Plugin plugin,
int ticks) |
PermissionAttachment |
addAttachment(Plugin plugin,
String name,
boolean value) |
PermissionAttachment |
addAttachment(Plugin plugin,
String name,
boolean value,
int ticks) |
Set<PermissionAttachmentInfo> |
getEffectivePermissions() |
String |
getName() |
Server |
getServer() |
boolean |
hasPermission(Permission perm) |
boolean |
hasPermission(String name) |
boolean |
isOp() |
boolean |
isPermissionSet(Permission perm) |
boolean |
isPermissionSet(String name) |
void |
recalculatePermissions() |
void |
removeAttachment(PermissionAttachment attachment) |
void |
sendMessage(String message) |
void |
sendMessage(String[] messages) |
void |
setOp(boolean value) |
public void sendMessage(String message)
sendMessage in interface CommandSenderpublic void sendMessage(String[] messages)
sendMessage in interface CommandSenderpublic Server getServer()
getServer in interface CommandSenderpublic String getName()
getName in interface CommandSenderpublic boolean isPermissionSet(String name)
isPermissionSet in interface Permissiblepublic boolean isPermissionSet(Permission perm)
isPermissionSet in interface Permissiblepublic boolean hasPermission(String name)
hasPermission in interface Permissiblepublic boolean hasPermission(Permission perm)
hasPermission in interface Permissiblepublic PermissionAttachment addAttachment(Plugin plugin, String name, boolean value)
addAttachment in interface Permissiblepublic PermissionAttachment addAttachment(Plugin plugin)
addAttachment in interface Permissiblepublic PermissionAttachment addAttachment(Plugin plugin, String name, boolean value, int ticks)
addAttachment in interface Permissiblepublic PermissionAttachment addAttachment(Plugin plugin, int ticks)
addAttachment in interface Permissiblepublic void removeAttachment(PermissionAttachment attachment)
removeAttachment in interface Permissiblepublic void recalculatePermissions()
recalculatePermissions in interface Permissiblepublic Set<PermissionAttachmentInfo> getEffectivePermissions()
getEffectivePermissions in interface Permissiblepublic boolean isOp()
isOp in interface ServerOperatorpublic void setOp(boolean value)
setOp in interface ServerOperatorCopyright © 2017. All rights reserved.