small bug fixes, time delay playerjoin

This commit is contained in:
kremsy
2014-03-02 11:25:47 +01:00
committed by Steffen Schröder
parent 90568f1d43
commit 2f9cab62fa
4 changed files with 33 additions and 21 deletions

View File

@ -1,6 +1,7 @@
<?php
namespace ManiaControl;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
/**
* Chat utility class
@ -70,7 +71,13 @@ class Chat {
if ($login === null) {
$this->maniaControl->client->chatSendServerMessage($chatMessage);
} else {
try{
$this->maniaControl->client->chatSendServerMessage($chatMessage, $login);
} catch(Exception $e){
if($e->getMessage() != "Login unknown."){
throw $e;
}
}
}
return true;
}