User:EAi/Server Console Commands
This is a list of current server console commands, in order to find which could be scripted.
Comments Added by Vandalite
- say
- teamsay
- Exportable using msg -- may not be a bad idea to keep this one though, and have a wrapper instead for team assignment.
- asay
- What's this? is it needed?
- msg
- amsg
- What's this? is it needed?
- me
- What's this? is it needed?
- slap
- What's this? is it needed?
- nick
- vote
- Exportable using mapvote resource
- maps
- Exportable using mapvote resource
- login
- Should have a lua wrapper with security resource
- logout
- Should have a lua wrapper with security resource
- setlevel
- Should have a lua wrapper with security resource
- chgmypass
- Should have a lua wrapper with security resource
- addaccount
- Should have a lua wrapper with security resource
- delaccount
- Should have a lua wrapper with security resource
- chgpass
- Should have a lua wrapper with security resource
- chglevel
- Should have a lua wrapper with security resource
- startmap
- Should have a lua wrapper with mapvote resource
- restartmap
- Exportable using mapvote resource
- mute
- Exportable using communications resource (and onPlayerChat interruptions)
- unmute
- Exportable using communications resource (and onPlayerChat interruptions)
- kick
- Should have a lua wrapper with security resource
- ban
- Should have a lua wrapper with security resource
- banip
- Should have a lua wrapper with security resource
- unbanip
- Should have a lua wrapper with security resource
- shutdown
- aexec
- What's this? is it needed?
- whois
- What's this? is it needed?
- whowas
- What's this? is it needed?
- loadscript
- legacy. consider changing to loadresource
- unloadscript
- legacy. consider changing to unloadresource
- scripts
- What's this? is it needed?
- debugscript
For all commands i reccomended putting in the security resource, this is only useful if you have a way of setting commands (from mta server conf) to a security level higher than ANY user, and an architecture is in place to allow resources themselves to have security levels. this allows ONLY the security resource to run these commands, and will only do so if the user has logged in, and communicates with the resource (with console command handlers). This allows easy modifications to the security systems, without needing to reboot the server. Besides, as you said, the more control you have from lua, the better.
It should also be noted that various automated things that MTA does now, using map configurations, like respawn, and weapon drops should be exported to resource modules. bring the MTA automated systems completely down, and let lua do it, with simple commands like spawnplayer and spawnweapon. This gives ultimate control over what goes in the map files (or i should say, resource config files). It'll come in handy for gamemodes that need special respawn controls. (i'm thinking gang wars).
A lot of this you already know, but i put it down cause you're not the only one who might read this.