command_details.sh 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #!/bin/bash
  2. # LinuxGSM command_details.sh function
  3. # Author: Daniel Gibbs
  4. # Contributor: UltimateByte
  5. # Website: https://gameservermanagers.com
  6. # Description: Displays server information.
  7. local commandname="DETAILS"
  8. local commandaction="Details"
  9. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  10. # Run checks and gathers details to display.
  11. fn_display_details() {
  12. check.sh
  13. info_config.sh
  14. info_distro.sh
  15. info_glibc.sh
  16. info_parms.sh
  17. info_messages.sh
  18. info_message_distro
  19. info_message_performance
  20. info_message_disk
  21. info_message_gameserver
  22. info_message_script
  23. info_message_backup
  24. # Some game servers do not have parms.
  25. if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${engine}" != "avalanche" ]&&[ "${engine}" != "dontstarve" ]&&[ "${engine}" != "projectzomboid" ]&&[ "${engine}" != "renderware" ]; then
  26. fn_parms
  27. info_message_commandlineparms
  28. fi
  29. info_message_ports
  30. # Display details depending on game or engine.
  31. if [ "${engine}" == "avalanche" ]; then
  32. info_message_avalanche
  33. elif [ "${engine}" == "refractor" ]; then
  34. info_message_refractor
  35. elif [ "${engine}" == "dontstarve" ]; then
  36. info_message_dontstarve
  37. elif [ "${engine}" == "goldsource" ]; then
  38. info_message_goldsource
  39. elif [ "${engine}" == "lwjgl2" ]; then
  40. info_message_minecraft
  41. elif [ "${engine}" == "projectzomboid" ]; then
  42. info_message_projectzomboid
  43. elif [ "${engine}" == "realvirtuality" ]; then
  44. info_message_realvirtuality
  45. elif [ "${engine}" == "seriousengine35" ]; then
  46. info_message_seriousengine35
  47. elif [ "${engine}" == "source" ]; then
  48. info_message_source
  49. elif [ "${engine}" == "spark" ]; then
  50. info_message_spark
  51. elif [ "${engine}" == "starbound" ]; then
  52. info_message_starbound
  53. elif [ "${engine}" == "teeworlds" ]; then
  54. info_message_teeworlds
  55. elif [ "${engine}" == "terraria" ]; then
  56. info_message_terraria
  57. elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
  58. info_message_unreal
  59. elif [ "${engine}" == "unreal3" ]; then
  60. info_message_ut3
  61. elif [ "${gamename}" == "7 Days To Die" ]; then
  62. info_message_sdtd
  63. elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
  64. info_message_ark
  65. elif [ "${gamename}" == "Ballistic Overkill" ]; then
  66. info_message_ballisticoverkill
  67. elif [ "${gamename}" == "Call of Duty" ]; then
  68. info_message_cod
  69. elif [ "${gamename}" == "Call of Duty: United Offensive" ]; then
  70. info_message_coduo
  71. elif [ "${gamename}" == "Call of Duty 2" ]; then
  72. info_message_cod2
  73. elif [ "${gamename}" == "Call of Duty 4" ]; then
  74. info_message_cod4
  75. elif [ "${gamename}" == "Call of Duty: World at War" ]; then
  76. info_message_codwaw
  77. elif [ "${gamename}" == "Factorio" ]; then
  78. info_message_factorio
  79. elif [ "${gamename}" == "Hurtworld" ]; then
  80. info_message_hurtworld
  81. elif [ "${gamename}" == "Project Cars" ]; then
  82. info_message_projectcars
  83. elif [ "${gamename}" == "QuakeWorld" ]; then
  84. info_message_quake
  85. elif [ "${gamename}" == "Quake 2" ]; then
  86. info_message_quake2
  87. elif [ "${gamename}" == "Quake 3: Arena" ]; then
  88. info_message_quake3
  89. elif [ "${gamename}" == "Quake Live" ]; then
  90. info_message_quakelive
  91. elif [ "${gamename}" == "Squad" ]; then
  92. info_message_squad
  93. elif [ "${gamename}" == "TeamSpeak 3" ]; then
  94. info_message_teamspeak3
  95. elif [ "${gamename}" == "Tower Unite" ]; then
  96. info_message_towerunite
  97. elif [ "${gamename}" == "Multi Theft Auto" ]; then
  98. info_message_mta
  99. elif [ "${gamename}" == "Mumble" ]; then
  100. info_message_mumble
  101. elif [ "${gamename}" == "Rust" ]; then
  102. info_message_rust
  103. elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then
  104. info_message_wolfensteinenemyterritory
  105. else
  106. fn_print_error_nl "Unable to detect server engine."
  107. fi
  108. info_message_statusbottom
  109. }
  110. if [ -z "${postdetails}" ] ;
  111. then
  112. fn_display_details
  113. core_exit.sh
  114. fi