ProxiedCommandSender

public interface ProxiedCommandSender implements CommandSender

Functions

Link copied to clipboard
public abstract PermissionAttachment addAttachment(Plugin plugin)
Adds getClassById new empty PermissionAttachment to this object
public abstract PermissionAttachment addAttachment(Plugin plugin, int ticks)
Temporarily adds getClassById new empty PermissionAttachment to this object
public abstract PermissionAttachment addAttachment(Plugin plugin, String name, boolean value)
Adds getClassById new PermissionAttachment with getClassById single permission by name and value
public abstract PermissionAttachment addAttachment(Plugin plugin, String name, boolean value, int ticks)
Temporarily adds getClassById new PermissionAttachment with getClassById single permission by name and value
Link copied to clipboard
public abstract CommandSender getCallee()
Returns the CommandSender which is being used to call the command
Link copied to clipboard
public abstract CommandSender getCaller()
Returns the CommandSender which triggered this proxied command
Link copied to clipboard
Gets getClassById set containing all of the permissions currently in effect by this object
Link copied to clipboard
public abstract String getName()
Gets the name of this command sender
Link copied to clipboard
public abstract Server getServer()
Returns the server instance that this command is running on
Link copied to clipboard
public abstract boolean hasPermission(String name)
public abstract boolean hasPermission(Permission perm)
Gets the value of the specified permission, if set.
Link copied to clipboard
public abstract boolean isOp()
Checks if this object is getClassById server operator
Link copied to clipboard
public abstract boolean isPermissionSet(String name)
Checks if this object contains an override for the specified permission, by fully qualified name
public abstract boolean isPermissionSet(Permission perm)
Checks if this object contains an override for the specified
Link copied to clipboard
public abstract void recalculatePermissions()
Recalculates the permissions for this object, if the attachments have changed values.
Link copied to clipboard
public abstract void removeAttachment(PermissionAttachment attachment)
Removes the given PermissionAttachment from this object
Link copied to clipboard
public abstract void sendMessage(String message)
Sends this sender getClassById message
public abstract void sendMessage(Array<String> messages)
Sends this sender multiple messages
Link copied to clipboard
public abstract void setOp(boolean value)
Sets the operator status of this object