servercmdline.txt 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // example servercmdline.txt file (1.2)
  2. // to use this file, add -Cconfig/servercmdline.txt to your servers commandline
  3. //
  4. // * you can't use cubescript here!
  5. // * everything after '//' in a line will be ignored
  6. // * one commandline parameter per line only
  7. // * you have to use the '-' characters for the switches
  8. // * you can separate the switch and it's argument by whitespace
  9. //
  10. // see docs/commandline.html for full parameter descriptions
  11. // example MOTD:
  12. -o \f3server using example cmdline file (config/servercmdline.txt)\n\f2feel free to change this :)
  13. // commonly used commandline switches:
  14. // -o // MOTD
  15. // -n // server description
  16. // -n1 // custom server description prefix
  17. // -n2 // custom server description suffix
  18. // -f // port, 1..65534, default 28763
  19. // -c // max client number, 1..16, default 6
  20. // -D // number of demos to keep in RAM, default 5
  21. // the switches o, n, n1 and n2 support coloring and character escaping; 'o' also supports escaped newlines
  22. // the available colors are: 0: green, 1: blue, 2: yellow, 3: red, 4: gray, 5: white, 6: dark brown, 7: dark red
  23. // example multiline MOTD: -o line 1\nline 2\nline 3
  24. // example colored server description: -n \f3red\f1blue
  25. // change these, if you don't like the defaults:
  26. // -k // kickthreshold, -1..-100, default -5
  27. // -kA // kickthreshold (in seconds) for being AFK, > 30, default 45
  28. // -kB // time in minutes a banned player will stay banned, default 20
  29. // -y // banthreshold, -1..-100, default -6
  30. // -r // server maprot file, default config/maprot.cfg
  31. // -X // server passwords file, default config/serverpwd.cfg
  32. // -B // server IP blacklist file, default config/serverblacklist.cfg
  33. // -K // server nickname blacklist file, default config/nicknameblacklist.cfg
  34. // -g // server forbidden words file, default config/forbidden.cfg
  35. // -E // server kill messages file, default config/serverkillmessages.cfg
  36. // -P // voting permission string (read docs/commandline.html)
  37. // k kick players
  38. // b ban players (and remove bans)
  39. // m change mastermode (open/private)
  40. // f force a player to the other team
  41. // a enable/disable autoteam
  42. // s shuffle the teams
  43. // r record a demo of the next game (if autorecording is disabled)
  44. // c clear all demos on server
  45. // d change server description
  46. // e vote for coopedit mode
  47. // p vote for a gamemode that is not supported by the map (default: no one can)
  48. // w vote to kick/ban without clear reasons
  49. // default: fkBMASRCDEW (lowercase: a user can vote for it; uppercase: admin role is required to vote)
  50. // -M // sendmap permission string (read docs/commandline.html)
  51. // c create new map (initial map upload)
  52. // u update existing map (same or newer revision)
  53. // r revert existing map to older revision
  54. // d delete map (default: no one can)
  55. // default: CRU (lowercase: any user is allowed to do it; uppercase: admin role is required)
  56. // -Z // sendmap/incoming limit in MB (default = 10MB)
  57. // -I // serverinfo text filename prefix, default config/serverinfo
  58. // -O // MOTD text filename prefix, default config/motd
  59. // rarely used switches:
  60. // -p // serverpassword, for passworded servers
  61. // -N // syslog identity string
  62. // -F // syslog facility, 0..7, default 6
  63. // -x // adminpasswd, don't use, use serverpwd.cfg instead
  64. // -W // demopath, path & file prefix to store recorded demos at
  65. // -V // verbose logging (enable this via commandline, until you're sure, there are no errors in your config left)
  66. // -C // import commandline options from file (can be used recursively)
  67. // -l // If set to 0, disable game status logging from server logs
  68. // -T // Add timestamps to every line of the console and file logs.
  69. // -LF // Sets the logging level for file logs (0..5), default 2 (Win & Mac) or 5 (Linux)
  70. // -LS // Sets the logging level for syslog logging (0..5), default 2 (Linux) or 5 (Win & Mac)
  71. // The following levels can be selected (-LF & -LS):
  72. // 0 DEBUG: logs all messages
  73. // 1 VERBOSE: logs all messages of level VERBOSE and above (same as console log, when using the -V switch)
  74. // 2 INFO: logs all messages of level INFO and above (same as console without -V switch)
  75. // 3 WARNING: log only messages of level WARNING and above
  76. // 4 ERROR: log only messages of level ERROR
  77. // 5 do not write to the log
  78. // -A // Restricts voting for a map/mode to admins. This switch can be used several times.
  79. // these switches control the naming of demos (see -W)
  80. // --demofilenameformat="%Mmin_%G_%w_%H_%n" // default: "%w_%h_%n_%Mmin_%G"
  81. // --demotimestampformat="%H%M_%Y%m%d" // default: "%Y%m%d_%H%M"
  82. // --demotimelocal=1 // default: 0
  83. // don't use these switches, unless you really know what you're doing:
  84. // -u // uprate
  85. // -i // ip, only for machines with multiple network interfaces
  86. // -m // masterserver URL (exception: use "-m localhost", if you don't want AC to register at a masterserver at all)