Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/shoghicp/BigBrother/BigBrother.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use shoghicp\BigBrother\network\Info as MCInfo;
use shoghicp\BigBrother\network\ProtocolInterface;
use shoghicp\BigBrother\network\ServerThread;
use shoghicp\BigBrother\network\translation\Translator_20;
use shoghicp\BigBrother\network\translation\Translator_70;
use shoghicp\BigBrother\tasks\GeneratePrivateKey;

class BigBrother extends PluginBase implements Listener{
Expand Down Expand Up @@ -78,8 +78,8 @@ public function onEnable(){
$this->getLogger()->warning("No motd has been set. The server description will be empty.");
}

if(Info::CURRENT_PROTOCOL === 20){
$this->translator = new Translator_20();
if(Info::CURRENT_PROTOCOL === 70){
$this->translator = new Translator_70();
}else{
$this->getLogger()->critical("Couldn't find a protocol translator for #".Info::CURRENT_PROTOCOL .", disabling plugin");
$this->getPluginLoader()->disablePlugin($this);
Expand Down
4 changes: 2 additions & 2 deletions src/shoghicp/BigBrother/network/ServerThread.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class ServerThread extends Thread{
/** @var \ThreadedLogger */
protected $logger;
protected $loader;
protected $data = [];
protected $data;

public $loadPaths = [];
public $loadPaths;

protected $shutdown;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
use shoghicp\BigBrother\network\protocol\WindowItemsPacket;
use shoghicp\BigBrother\utils\Binary;

class Translator_20 implements Translator{
class Translator_70 implements Translator{



Expand Down Expand Up @@ -401,4 +401,4 @@ public function serverToInterface(DesktopPlayer $player, DataPacket $packet){
return null;
}
}
}
}