small bug fixes, time delay playerjoin
This commit is contained in:
		
				
					committed by
					
						
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							90568f1d43
						
					
				
				
					commit
					2f9cab62fa
				
			@@ -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;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user