Download the PHP package rminks/rcon without Composer
On this page you can find all versions of the php package rminks/rcon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rcon
About
All credits to AnvilM (https://github.com/AnvilM/PHP_RCON/tree/main), I upload my own version according to my own requirements, preferences and needs.
Source RCON Protocol library for Laravel
Install
You can get this package using composer
Configuration
Setting in valve games (Engine Source)
By default, SRCDS listens for RCON connections on TCP port 27015. If the server's port number is changed using the -port option, the RCON port will change as well. SRCDS will always refuse any RCON connection attempt originating from an IP on its banlist. If the rcon_password cvar is written to for any reason, the server will immediately close all authenticated RCON connections. This happens even if the new value of rcon_password is identical to the old one. These connections will need to be re-opened and re-authenticated before any further commands can be issued. Connections which have not been authenticated yet are not dropped. If the password was changed remotely, the server will not respond to the command which caused the password to change. if rcon_password is not setted, the gameserver gonna reject all connections
Setting in Minecraft
To use RCON on your server, you need to enable it and configure it in your Minecraft server settings.
In the file server.properties
Getting started
Create connection
To create an RCON connection to a minecraft server, you need to create an object of the RCON class.
Send commands
To send a command to the server, use this method of the RСON class. This method will return the response from the server.
Server Responses
All responses
To get all responses from the server use the following method
Last response
To get last response from the server use the following method
Response by id
You can get a specific server response from a list if you have the ID of that response.
Example
As a result of executing this code you should get the following result
Example 2
As a result of executing this code you should get the following result