@@ -19,8 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $rcon = new \Nizarii\ARC(decrypt($server->sq_ip), decrypt($server->rcon_pass), (int)decrypt($server->sq_port)); |
| 21 | 21 | $answer = $rcon->banPlayer($rid, $reason, $time); |
| 22 | - } |
|
| 23 | - catch (Exception $e) |
|
| 22 | + } catch (Exception $e) |
|
| 24 | 23 | { |
| 25 | 24 | echo $e->getMessage( ); |
| 26 | 25 | } |
@@ -20,8 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | $rcon = new \Nizarii\ARC(decrypt($server->sq_ip), decrypt($server->rcon_pass), (int)decrypt($server->sq_port)); |
| 22 | 22 | $answer = $rcon->command($cmd); |
| 23 | - } |
|
| 24 | - catch (Exception $e) |
|
| 23 | + } catch (Exception $e) |
|
| 25 | 24 | { |
| 26 | 25 | echo $e->getMessage( ); |
| 27 | 26 | } |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | echo json_encode($answer); |
| 18 | 18 | |
| 19 | - } |
|
| 20 | - catch (Exception $e) |
|
| 19 | + } catch (Exception $e) |
|
| 21 | 20 | { |
| 22 | 21 | echo $e->getMessage( ); |
| 23 | 22 | var_dump($e); |