mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added RCON
This commit is contained in:
@ -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";
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user