org.bukkit.command
Interface CommandSender

All Superinterfaces:
Permissible, ServerOperator
All Known Subinterfaces:
BlockCommandSender, ConsoleCommandSender, Player, RemoteConsoleCommandSender

public interface CommandSender
extends Permissible


Method Summary
 String getName()
          Gets the name of this command sender
 Server getServer()
          Returns the server instance that this command is running on
 void sendMessage(String message)
          Sends this sender a message
 void sendMessage(String[] messages)
          Sends this sender multiple messages
 
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
 
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
 

Method Detail

sendMessage

void sendMessage(String message)
Sends this sender a message

Parameters:
message - Message to be displayed

sendMessage

void sendMessage(String[] messages)
Sends this sender multiple messages

Parameters:
messages - An array of messages to be displayed

getServer

Server getServer()
Returns the server instance that this command is running on

Returns:
Server instance

getName

String getName()
Gets the name of this command sender

Returns:
Name of the sender


Copyright © 2013. All Rights Reserved.