public class RConConsoleSource extends Object implements ICommandSender
Modifier and Type | Field and Description |
---|---|
static RConConsoleSource |
consoleBuffer
only ever used by MinecraftServer.executeCommand
|
Constructor and Description |
---|
RConConsoleSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCommandSenderUseCommand(int par1,
String par2Str)
Returns true if the command sender is allowed to use the given command.
|
String |
getChatBuffer() |
String |
getCommandSenderName()
Gets the name of this command sender (usually username, but possibly "Rcon")
|
World |
getEntityWorld() |
ChunkCoordinates |
getPlayerCoordinates()
Return the position for this command sender.
|
void |
resetLog()
Clears the RCon log
|
void |
sendChatToPlayer(ChatMessageComponent par1ChatMessageComponent) |
public static final RConConsoleSource consoleBuffer
public void resetLog()
public String getChatBuffer()
public String getCommandSenderName()
getCommandSenderName
in interface ICommandSender
public void sendChatToPlayer(ChatMessageComponent par1ChatMessageComponent)
sendChatToPlayer
in interface ICommandSender
public boolean canCommandSenderUseCommand(int par1, String par2Str)
canCommandSenderUseCommand
in interface ICommandSender
public ChunkCoordinates getPlayerCoordinates()
getPlayerCoordinates
in interface ICommandSender
public World getEntityWorld()
getEntityWorld
in interface ICommandSender