Server: fixed console not receiving user broadcast channel messages

I'm not entirely clear how this managed to work to begin with really, but it's now fixed properly.
This commit is contained in:
Dylan K. Taylor 2019-03-27 23:53:39 +00:00
parent 649ce5080b
commit de193d41a0

View File

@ -1330,6 +1330,7 @@ class Server{
//TODO: move console parts to a separate component
$consoleSender = new ConsoleCommandSender();
PermissionManager::getInstance()->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE, $consoleSender);
PermissionManager::getInstance()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS, $consoleSender);
$consoleNotifier = new SleeperNotifier();
$this->console = new CommandReader($consoleNotifier);