Added RCON

This commit is contained in:
Shoghi Cervantes
2014-04-02 19:33:49 +02:00
parent 379b70eca7
commit 11356b68ba
5 changed files with 49 additions and 15 deletions

View File

@ -22,6 +22,22 @@
namespace pocketmine\command;
interface RemoteConsoleCommandSender extends CommandSender{
class RemoteConsoleCommandSender extends ConsoleCommandSender{
/** @var string */
private $messages = "";
public function sendMessage($message){
$this->messages .= trim($message, "\r\n")."\n";
}
public function getMessage(){
return $this->messages;
}
public function getName(){
return "Rcon";
}
}