diff --git a/src/shoghicp/BigBrother/BigBrother.php b/src/shoghicp/BigBrother/BigBrother.php index b0496f26..93022050 100644 --- a/src/shoghicp/BigBrother/BigBrother.php +++ b/src/shoghicp/BigBrother/BigBrother.php @@ -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{ @@ -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); diff --git a/src/shoghicp/BigBrother/network/ServerThread.php b/src/shoghicp/BigBrother/network/ServerThread.php index 402cad64..7c210f7e 100644 --- a/src/shoghicp/BigBrother/network/ServerThread.php +++ b/src/shoghicp/BigBrother/network/ServerThread.php @@ -26,9 +26,9 @@ class ServerThread extends Thread{ /** @var \ThreadedLogger */ protected $logger; protected $loader; - protected $data = []; + protected $data; - public $loadPaths = []; + public $loadPaths; protected $shutdown; diff --git a/src/shoghicp/BigBrother/network/translation/Translator_20.php b/src/shoghicp/BigBrother/network/translation/Translator_70.php similarity index 99% rename from src/shoghicp/BigBrother/network/translation/Translator_20.php rename to src/shoghicp/BigBrother/network/translation/Translator_70.php index 1e76ef9a..a4ef606c 100644 --- a/src/shoghicp/BigBrother/network/translation/Translator_20.php +++ b/src/shoghicp/BigBrother/network/translation/Translator_70.php @@ -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{ @@ -401,4 +401,4 @@ public function serverToInterface(DesktopPlayer $player, DataPacket $packet){ return null; } } -} \ No newline at end of file +}