Supported Games

Auto Commands runs one or more server commands on specific player or server events. This can be used for granting and revoking permissions, or pretty much any other server console command available. Arguments are supported, which you can see in the default configuration examples.
Configuration
{
"Run commands on player connect": false,
"Commands on connect": [
"examplecmd $player.id",
"example.cmd"
],
"Run commands on player disconnect": false,
"Commands on disconnect": [
"examplecmd",
"example.cmd \"text example\""
],
"Run commands on server startup": false,
"Commands on server startup": [
"examplecmd $server.name",
"example.cmd"
],
"Run commands on server wipe": false,
"Commands on server wipe": [
"examplecmd arg",
"example.cmd \"text example\""
]
}
Note: Any of the default command examples will not be ran, as they are checked for and excluded.
Placeholders
Commands with placeholders in them will be replaced with the relevant information when the command is ran.
Player
- $player.id
- $player.name
- $player.ip
- $player.language
- $player.ping
- $player.position
Server
- $server.name
- $server.ip
- $server.port
- $server.players
- $server.language
- $server.maxplayers
- $server.protocol
- $server.version
MIT License, with distribution exclusivity for uMod.org
Copyright (c) 2020 Wulf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.