mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-27 02:23:47 +00:00
Added option KICK_INACTIVE. Uncomment it in config.txt if you want to disconnect inactive players.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1472 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
var/hostedby = null
|
||||
var/respawn = 1
|
||||
var/guest_jobban = 1
|
||||
var/kick_inactive = 0 //force disconnect for inactive players
|
||||
|
||||
var/server
|
||||
var/banappeals
|
||||
@@ -196,6 +197,8 @@
|
||||
diary << "Unknown game mode probability configuration definition: [prob_name]."
|
||||
else
|
||||
diary << "Incorrect probability configuration definition: [prob_name] [prob_value]."
|
||||
if ("kick_inactive")
|
||||
config.kick_inactive = text2num(value)
|
||||
else
|
||||
diary << "Unknown setting in configuration: '[name]'"
|
||||
|
||||
|
||||
@@ -15,11 +15,12 @@
|
||||
LoadBans()
|
||||
process_teleport_locs() //Sets up the wizard teleport locations
|
||||
process_ghost_teleport_locs() //Sets up ghost teleport locations.
|
||||
sleep_offline = 1
|
||||
|
||||
if (config.kick_inactive)
|
||||
spawn(30)
|
||||
//EXPERIMENTAL
|
||||
Optimize()
|
||||
sleep_offline = 1
|
||||
//EXPERIMENTAL
|
||||
|
||||
spawn(0)
|
||||
|
||||
@@ -22,6 +22,9 @@ LOG_WHISPER
|
||||
# sql switching
|
||||
# SQL_ENABLED
|
||||
|
||||
#disconnect players who did nothing during 10 minutes
|
||||
# KICK_INACTIVE
|
||||
|
||||
# probablities for game modes chosen in "secret" and "random" modes
|
||||
#
|
||||
# default probablity is 1, increase to make that mode more likely to be picked
|
||||
|
||||
Reference in New Issue
Block a user