added new socketmanager, testing and exception ahndling not done yet

This commit is contained in:
kremsy
2015-06-21 20:45:48 +02:00
parent fc5a3e04b6
commit fa899e87a8
6 changed files with 179 additions and 37 deletions

View File

@ -112,6 +112,8 @@ class PlayerManager implements CallbackListener, TimerListener, EchoListener {
// Echo Warn Command (Usage: sendEcho json_encode("player" => "loginName")
$this->maniaControl->getEchoManager()->registerEchoListener(self::ECHO_WARN_PLAYER, $this, function ($params) {
$this->playerActions->warnPlayer(null, $params->player, false);
return "abcdef";
});
}