public class NukkitCMDSender
extends java.lang.Object
implements com.djrapitops.plugin.command.Sender
Constructor and Description |
---|
NukkitCMDSender(cn.nukkit.command.CommandSender cs) |
Modifier and Type | Method and Description |
---|---|
cn.nukkit.permission.PermissionAttachment |
addAttachment(cn.nukkit.plugin.Plugin plugin) |
cn.nukkit.permission.PermissionAttachment |
addAttachment(cn.nukkit.plugin.Plugin plugin,
java.lang.String name) |
cn.nukkit.permission.PermissionAttachment |
addAttachment(cn.nukkit.plugin.Plugin plugin,
java.lang.String name,
java.lang.Boolean value) |
java.util.Map<java.lang.String,cn.nukkit.permission.PermissionAttachmentInfo> |
getEffectivePermissions() |
java.lang.String |
getName() |
java.lang.Object |
getSender() |
com.djrapitops.plugin.command.SenderType |
getSenderType() |
cn.nukkit.Server |
getServer() |
boolean |
hasPermission(cn.nukkit.permission.Permission permission) |
boolean |
hasPermission(java.lang.String name) |
boolean |
isOp() |
boolean |
isPermissionSet(cn.nukkit.permission.Permission permission) |
boolean |
isPermissionSet(java.lang.String name) |
boolean |
isPlayer() |
void |
recalculatePermissions() |
void |
removeAttachment(cn.nukkit.permission.PermissionAttachment attachment) |
void |
sendLink(java.lang.String pretext,
java.lang.String linkText,
java.lang.String url) |
void |
sendMessage(java.lang.String message) |
void |
sendMessage(java.lang.String[] strings) |
void |
sendMessage(cn.nukkit.lang.TextContainer message) |
void |
setOp(boolean value) |
public void sendMessage(java.lang.String[] strings)
sendMessage
in interface com.djrapitops.plugin.command.Sender
public void sendLink(java.lang.String pretext, java.lang.String linkText, java.lang.String url)
sendLink
in interface com.djrapitops.plugin.command.Sender
public com.djrapitops.plugin.command.SenderType getSenderType()
getSenderType
in interface com.djrapitops.plugin.command.Sender
public java.lang.Object getSender()
getSender
in interface com.djrapitops.plugin.command.Sender
public void sendMessage(java.lang.String message)
sendMessage
in interface com.djrapitops.plugin.command.Sender
public void sendMessage(cn.nukkit.lang.TextContainer message)
public cn.nukkit.Server getServer()
public java.lang.String getName()
getName
in interface com.djrapitops.plugin.command.Sender
public boolean isPlayer()
public boolean isPermissionSet(java.lang.String name)
public boolean isPermissionSet(cn.nukkit.permission.Permission permission)
public boolean hasPermission(java.lang.String name)
hasPermission
in interface com.djrapitops.plugin.command.Sender
public boolean hasPermission(cn.nukkit.permission.Permission permission)
public cn.nukkit.permission.PermissionAttachment addAttachment(cn.nukkit.plugin.Plugin plugin)
public cn.nukkit.permission.PermissionAttachment addAttachment(cn.nukkit.plugin.Plugin plugin, java.lang.String name)
public cn.nukkit.permission.PermissionAttachment addAttachment(cn.nukkit.plugin.Plugin plugin, java.lang.String name, java.lang.Boolean value)
public void removeAttachment(cn.nukkit.permission.PermissionAttachment attachment)
public void recalculatePermissions()
public java.util.Map<java.lang.String,cn.nukkit.permission.PermissionAttachmentInfo> getEffectivePermissions()
public boolean isOp()
isOp
in interface com.djrapitops.plugin.command.Sender
public void setOp(boolean value)