858c8bee96
By: Dinnerbone <dinnerbone@dinnerbone.com>
36 lines
703 B
Java
36 lines
703 B
Java
package org.bukkit.command;
|
|
|
|
import org.bukkit.Server;
|
|
|
|
|
|
public interface CommandSender {
|
|
/**
|
|
* Sends this sender a message
|
|
*
|
|
* @param message Message to be displayed
|
|
*/
|
|
public void sendMessage(String message);
|
|
|
|
/**
|
|
* Checks if this sender is currently op
|
|
*
|
|
* @return true if they are
|
|
*/
|
|
public boolean isOp();
|
|
|
|
/**
|
|
* Checks if this sender is a player
|
|
*
|
|
* @return true if they are
|
|
* @deprecated Use instanceof
|
|
*/
|
|
@Deprecated
|
|
public boolean isPlayer();
|
|
|
|
/**
|
|
* Returns the server instance that this player is running through
|
|
*
|
|
* @return Server instance
|
|
*/
|
|
public Server getServer();
|
|
} |