improvements of sockethandler, possibility for maniacontrol to maniacontrol connections
This commit is contained in:
1 parent
687bb7be1b
commit
35de1b1b87
6 files changed
+192
-18
No files matched your search
+1
-1
@@ -53,7 +53,7 @@ class Chat implements CallbackListener, CommunicationListener {
|
||||
$this->maniaControl->getCallbackManager()->registerCallbackListener(CallbackManager::CB_MP_PLAYERCHAT, $this, 'onPlayerChat');
|
||||
|
||||
//Socket Listenings
|
||||
$this->maniaControl->getCommunicationManager()->registerCommunicationListener(CommunicationMethods::GET_SERVER_CHAT, $this, function ($data) {
|
||||
$this->maniaControl->getCommunicationManager()->registerCommunicationListener(CommunicationMethods::GET_SERVER_CHAT, $this, function ($error, $data) {
|
||||
return $this->chatBuffer;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user