Useful Server Admin Commands

SMOD / RCON - Basics

          ----------------------------------------

**/smod login # password**

This is how you login to smod, the # (usually between 1-10) depends on which level of admin is set within the server.cfg for that password.

/rconpassword nameofpassword

This is how you login to rcon.

Note: The safest way to login to avoid accidentally leaking the password is to create a .cfg text file, and put in something like this:

rconpassword passwordhere

smod login # passwordhere

echo ^1you are logged in!

save the .cfg in your MBII folder and when in the server, simply type /exec nameofcfg

**/smod**

Pulls up list of the smod commands you have been granted! This does not include RCON commands, but luckily you have this guide for the most useful ones. Check out the MBII Readme.html file to edit your ranks cvars in your MBII folder (useful for generator to set tier ranks of these in your own Server.cfg).

**/Rcon nextmap**

Pulls up what is coming up on the rotation, or will say map\_restart if the rotation is broken.

It should say something like 'vstr FA2' or 'vstr o2'

   - if it is broken at map\_restart, please set the rotation back! Type 'rcon nextmap vstr <nameofvstrhere>'

**/rcon nameofvstr**

This tells you what the command line is for the vstr set in a server.cfg

For example, if I type /rcon o1, it would probably say the string of commands which switches to LunarBase on Open, sets frag/roundlimit and sets the next map. Or, if I made a vstr called 'pug' it would tell me something like "set g\_password pug; g\_competitive 29".

**/rcon roundlimit** or **rcon fraglimit**

I use these commands to see what the current frag/roundlimit is. I adjust if people are loving the map or if they are antsy and want a new map.

**/smod nextmap**

This is the same general command as doing rcon vstr <nameofvstr>, only it goes to the next VSTR!

/smod gametype map nameofteam1 nameofteam2 - where team1/2 are different mbtc files (this allows you to mix and match FAs together on any map of your choosing) Example: ``smod gametype mb2\_lunarbase tmnt sle\_slender`` would give you ninja turtles vs slenderman on Lunarbase

/rcon devmapall  <nameofmap> Turns on cheats. You may need to use the vstr 'cheatson' with this also.

                   Quality of life RCON commands

            ----------------------------------------

set g\_password "none"

Password players need in order to be able to join your server. default is 'none'

set g\_InactivityKick "0"

Time in seconds until an inactive (i.e. not moving etc) client is kicked.

set g\_InactivitySpec "901"

Time in seconds until an inactive client is moved to the spectator mode. I use '299' for 5 minutes, 901 for duel mode.

New Duel Mode settings (for respawns):

seta g\_DuelMidRoundRespawnTimerInitial "15"

seta g\_DuelMidRoundRespawnTimerNoLives "3"

seta g\_DuelMidRoundRespawnTimerNoLivesIncrement "0"

This is how things are set for our duel servers currently. Extend time if competitive?

                    More  RCON admin

          ---------------------------------------

/rcon devmap [mapname]

Enables cheats on a map of your choosing.

Example: /rcon devmap mb2\_dotf

/rcon status

Shows the client number (num), score, ping, player name (name), client IP address (address), and port connected through (qport). Client number is used in conjunction with the kick/clientkick command below.

/rcon clientkick XX

Replace XX with the ID number of the player you wish to kick. ID numbers can be found with rcon status.

/rcon kick [player's name or ID number]

The ID number of the player is found when you have already done an rcon status. ID number isn't always reliable, keep in mind.

Once this variable is set, you can ban IP addresses from the rcon using the below command.

Example: /rcon kick 3

/rcon addip XXX.XXX.XXX.XXX

Adds this IP address to the ban list. Replace the X's with the IP address found with /rcon status

Example: /rcon addip 244.212.532.102

/rcon addip XXX.XXX.0

Bans the entire subnet, which bans everyone in the 289.292.0.XXX network. Effective for banning problem players who have a dynamic IP address. Yes, you probably can ban the entire subnet, but you'll loose a lot of potential players.

Example: /rcon addip 244.212.0

/rcon removeip XXX.XXX.XXX.XXX

Removes this IP address from the ban list.

Example: /rcon removeip 289.292.291.283

/rcon g\_banips

Shows the IP banlist in console.

            Competitive RCON commands

seta g\_competitive "0"           Add the values below together for the settings you want enabled:

//                  1            Hide HUD from spectators.

//                  2            Restrict free spectator movement.

//                  4            Spectators cannot chat with living players.

//                  8            Spectators may only spectate players from their own team.

//                  16           Hide enemy team's class icons on the scoreboard.

//                  32           Disable friendly player indicators (only works if server is passworded).

//                  Examples:

//                  0            Nothing enabled, fully casual.

//                  15           Enable all spectator related restrictions.

//                  17           Hide HUD from spectators and enemy team's class icons on scoreboard.

//                  63           All competitive settings enabled. Cvar value should not exceed this.

Recommended for scrimmages / serious play: 29 or 32.

                       Anti-Teamkill System

          ----------------------------------------

set g\_TKPointsSpecCount "450"

Player will be forced to spectate if they have accrued this many TKPoints for team kills. 0 = disabled.

set g\_TKPointsKickCount "750"

Player will be kicked and temp-banned from the server if a player has gotten this many TKPoints for team kills or hurting teammates. 0 = disabled.

set g\_TKPointsForgiveAfterRounds "2"

How many rounds must pass without any TKing by the player before g\_TKPointsRemovedPerRound applies. 0 = always.

set g\_TKPointsRemovedPerRound "75"

Each round that passes without the player having done any TKing, this many TKPoints will be removed from their total. 0 = disabled.

set g\_TKPointsTempBanForRounds "20"

Number of rounds player gets banned for after exceeding g\_TKPointsKickCount count.

                           RTV commands

          ----------------------------------------

If your server is set up with !RTV (see here for a guide on how to do so), these are some useful commands for setting up polls/resetting RTV and more.

SMOD also is being read by RTV, you can trigger it to cast votes using these commands!

/smod say !description description Use this command to add a description for an admin voting.

The description will be displayed everytime the voting list is displayed.

/smod say !vote option Use this command to add an option for an admin voting.

Options cannot be repeated and a minimum of two options must be added.

A maximum of ten options can be added.

/smod say !erase Use this command to remove all admin voting options that you or another admin have previously added.

It's recommended to always call this command first, before deciding to initiate an admin voting.

/smod say !force rtv forces rtv to begin

/smod say !force admin Use this command to initiate an admin voting.

Admin voting is an automatic poll that will do nothing once it's completed. Its purpose is to provide an automatic and organized mechanism for admins to make decisions based on players' opinions.

Commands from the Voting commands section are applied to an admin voting.

A voting description and at least 2 voting options must be added before starting the voting

/smod say !disable rtv/rtm/rte 0 Turns off / on RTV / RTE / RTM

/smod say !rehash restarts RTV