Server Commands: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (Added PL)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This page lists all built in commands that the server can process. All these commands can be entered via the server console or the client console depending upon permissions unless otherwise stated.
This page lists all built in commands that the server can process. All these commands can be entered via the server console or the client console depending upon permissions unless otherwise stated.


==Resource commands==
==Resource commands==
Line 14: Line 13:
:<ins>Server console only</ins>
:<ins>Server console only</ins>
:Shows a list of resources
:Shows a list of resources
====refresh====
====refresh====
:Refresh resource list to find new resources
:Refresh resource list to find new resources
Line 20: Line 18:
:Refresh resources and restart any changed resources
:Refresh resources and restart any changed resources
====restart====
====restart====
:Usage: info ''<resource-name>''<br>
:Usage: restart ''<resource-name>''<br>
:Restarts a running resource eg: restart admin
:Restarts a running resource eg: restart admin
====start====
====start====
:Usage: start ''<resource-name>''<br>
:Usage: start ''<resource-name>''<br>
Line 34: Line 33:
:Usage: upgrade [ ''all'' | ''<resource-name>'' ]<br>
:Usage: upgrade [ ''all'' | ''<resource-name>'' ]<br>
:Perform a basic upgrade of all resources. The [[Server_Commands#check|check]] command shows the list of changes this command will make.
:Perform a basic upgrade of all resources. The [[Server_Commands#check|check]] command shows the list of changes this command will make.
====aclrequest====
====aclrequest====
:Usage: aclrequest [ ''list'' | ''allow'' | ''deny'' ] ''<resource-name>'' [ ''<right>'' | ''all'' ]<br>
:Usage: aclrequest [ ''list'' | ''allow'' | ''deny'' ] ''<resource-name>'' [ ''<right>'' | ''all'' ]<br>
:Manage ACL requests from resources implementing <aclrequest> in their [[meta.xml]]
:Manage ACL requests from resources implementing <aclrequest> in their [[meta.xml]]
 
{{New feature/item|3.0156|1.5.5|11851|
====reloadacl====
====reloadacl====
:Perform a simple ACL reload.
:Perform a simple ACL reload.}}


==Account commands==
==Account commands==
Line 46: Line 44:
:Usage: aexec ''<nick>'' ''<command>''<br>
:Usage: aexec ''<nick>'' ''<command>''<br>
:Force a player to execute a command eg: aexec playername say hello
:Force a player to execute a command eg: aexec playername say hello
====addaccount====
====addaccount====
:Usage: addaccount ''<accountname>'' ''<password>''<br>
:Usage: addaccount ''<accountname>'' ''<password>''<br>
:Add an account eg: addaccount accountname password
:Add an account eg: addaccount accountname password
====chgpass====
====chgpass====
:Usage: chgpass ''<accountname>'' ''<password>''<br>
:Usage: chgpass ''<accountname>'' ''<password>''<br>
Line 57: Line 53:
:Usage: delaccount ''<accountname>''<br>
:Usage: delaccount ''<accountname>''<br>
:Delete an account eg: delaccount accountname
:Delete an account eg: delaccount accountname
====reloadbans====
:Reloads all the bans from ''banlist.xml''.
====authserial====
:Usage: authserial <account-name> [list|removelast|httppass]
:Manage serial authentication for an account.




Line 68: Line 69:
:Set logging level for database functions. [0-Off &nbsp;1-Errors only &nbsp;2-All]
:Set logging level for database functions. [0-Off &nbsp;1-Errors only &nbsp;2-All]
:By default, logging output is written to the file '''logs/db.log''' unless another file is declared in the [[Mtaserver.conf#dbfile|<dbfile> section of mtaserver.conf]]
:By default, logging output is written to the file '''logs/db.log''' unless another file is declared in the [[Mtaserver.conf#dbfile|<dbfile> section of mtaserver.conf]]
====debugjoinflood====
:<ins>Server console only</ins>
:Shows debug information regarding the join flood mitigation feature.
====debuguptime====
:<ins>Server console only</ins>
:Shows how many days the server has been up and running.
====help====
====help====
:<ins>Server console only</ins>
:<ins>Server console only</ins>
:Displays these list of commands
:Displays these list of commands
====loadmodule====
====loadmodule====
:<ins>Server console only</ins>
:Usage: loadmodule ''<module-filename>''<br>
:Usage: loadmodule ''<module-filename>''<br>
:Load a module eg: loadmodule ml_sockets.dll
:Load a module eg: loadmodule ml_sockets.dll
====unloadmodule====
====unloadmodule====
:<ins>Server console only</ins>
:<ins>Server console only</ins>
Line 104: Line 111:
====whois====
====whois====
:Usage: whois ''<nick>''<br>
:Usage: whois ''<nick>''<br>
:Get the IP of a player currently connected (use whowas for IP/serial/version)
:Get the IP of a player currently connected (use '''whowas''' for IP/serial/version)
{{Deprecated feature|3.0156|1.5.6|
====whowas====
====whowas====
:Usage: whowas ''<nick>''<br>
:Usage: whowas ''<nick>''<br>
:Get IP/Serial/username of a player that was previously connected to the server
:Get IP/Serial/username of a player that was previously connected to the server
}}
====ver====
====ver====
:Get the MTA version
:Get the MTA version


==Client relevant only==
==Client relevant only==
====chgmypass====
====chgmypass====
:<ins>Client only</ins>
:<ins>Client only</ins>
:Usage: chgmypass ''<oldpass>'' ''<newpass>''<br>
:Usage: chgmypass ''<oldpass>'' ''<newpass>''<br>
:Change your password eg: chgmypass oldpw newpw
:Change your password eg: chgmypass oldpw newpw
Line 143: Line 152:
====teamsay====
====teamsay====
:<ins>Client  only</ins>
:<ins>Client  only</ins>
:Usage: teamsay ''<test>''<br>
:Usage: teamsay ''<text>''<br>
:Send a message to all players on the same team
:Send a message to all players on the same team


[[Category: Support]]
[[Category: Support]]
[[pl:Server Commands]]
[[hu:Server Commands]]
[[ru:Server Commands]]
[[ru:Server Commands]]

Latest revision as of 15:05, 28 March 2024

This page lists all built in commands that the server can process. All these commands can be entered via the server console or the client console depending upon permissions unless otherwise stated.

Resource commands

check

Server console only
Usage: check [ all | <resource-name> ]
Checks which files would be changed with upgrade command. Does not modify anything.

info

Server console only
Usage: info <resource-name>
Get info for a resource eg: info admin

list

Server console only
Shows a list of resources

refresh

Refresh resource list to find new resources

refreshall

Refresh resources and restart any changed resources

restart

Usage: restart <resource-name>
Restarts a running resource eg: restart admin

start

Usage: start <resource-name>
Start a loaded resource eg: start admin

stop

Usage: stop <resource-name>
Stop a resource eg: stop admin

stopall

Stop all running resources

upgrade

Server console only
Usage: upgrade [ all | <resource-name> ]
Perform a basic upgrade of all resources. The check command shows the list of changes this command will make.

aclrequest

Usage: aclrequest [ list | allow | deny ] <resource-name> [ <right> | all ]
Manage ACL requests from resources implementing <aclrequest> in their meta.xml

reloadacl

Perform a simple ACL reload.

Account commands

aexec

Usage: aexec <nick> <command>
Force a player to execute a command eg: aexec playername say hello

addaccount

Usage: addaccount <accountname> <password>
Add an account eg: addaccount accountname password

chgpass

Usage: chgpass <accountname> <password>
Change an accounts password eg: chgpass account newpw

delaccount

Usage: delaccount <accountname>
Delete an account eg: delaccount accountname

reloadbans

Reloads all the bans from banlist.xml.

authserial

Usage: authserial <account-name> [list|removelast|httppass]
Manage serial authentication for an account.


Server commands

ase

Server console only
See the amount of master server list queries

debugdb

Usage: debugdb <0-2>
Server console only
Set logging level for database functions. [0-Off  1-Errors only  2-All]
By default, logging output is written to the file logs/db.log unless another file is declared in the <dbfile> section of mtaserver.conf

debugjoinflood

Server console only
Shows debug information regarding the join flood mitigation feature.

debuguptime

Server console only
Shows how many days the server has been up and running.

help

Server console only
Displays these list of commands

loadmodule

Usage: loadmodule <module-filename>
Load a module eg: loadmodule ml_sockets.dll

unloadmodule

Server console only
Usage: unloadmodule <module-filename>
Unload a module eg: unloadmodule ml_sockets.dll

reloadmodule

Server console only
Usage: reloadmodule <module-filename>
Reload a module eg: reloadmodule ml_sockets.dll

openports

Server console only
Test if server ports are open

sfakelag

Usage: sfakelag <packet loss> <extra ping> <ping variance> [<KBPS limit>]
Only available if enabled in the mtaserver.conf file.
Adds artificial packet loss, ping, jitter and bandwidth limits to the server-client connections.

shutdown

Usage: shutdown <reason>
Shutdown the server eg: shutdown put reason here

sver

Get the server MTA version


Other commands

say

Usage: say <text>
Show a message to all players on the server eg: say hello

whois

Usage: whois <nick>
Get the IP of a player currently connected (use whowas for IP/serial/version)

ver

Get the MTA version

Client relevant only

chgmypass

Client only
Usage: chgmypass <oldpass> <newpass>
Change your password eg: chgmypass oldpw newpw

debugscript

Client only
Usage: debugscript <0-3>
Remove (This does not work "Incorrect client type for this command")

login

Client only
Usage: login <accountname> <password>
Login to an account eg: login accountname password

logout

Client only
Log out of the current account

me

Client only
Usage: me <text>
Show a message to all players on the server, with your nick prepended

msg

Client only
Usage: msg <nick> <text>
Send a message to a player eg: msg playername hello

nick

Client only
Usage: nick <old-nick> <new-nick>
Change your ingame nickname

teamsay

Client only
Usage: teamsay <text>
Send a message to all players on the same team