![]() $rcon->getBans() // Throws exception, because the connection was closedĮcho "Ups! Something went wrong: " You might want to wrap your code in a try catch block. .ĪRC will throw an Exception if anything goes wrong. You are able to send commands with the command() function. $rcon = new ARC(string $ServerIP, string $RConPassword ]) It will automatically establish a new connection and authenticate. Īfter installing ARC, you can easily use ARC as shown below. $ composer require nizarii/arma-rcon-classĬhoose a release and include ARC in your project: require_once 'arc.php'. If you haven't already, download Composer. ARC is a lightweight PHP class, that allows you connecting and sending commands easily to your BattlEye server, including Arma 3, Arma 2 and Arma 2: OA game servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |