mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
If a server has both a linked server and the panic bunker on, you can now choose to redirect new players to the linked server instead of denying them outright.
You shouldn't use this if BOTH servers are panic bunkered, obviously.
This commit is contained in:
@@ -29,6 +29,7 @@ var/global/comms_allowed = 0 //By default, the server does not allow messages to
|
||||
//Cross server communications
|
||||
var/global/cross_address = "byond://" //This needs to be global as the message sent contains the comms key.
|
||||
var/global/cross_allowed = 0 //Don't bother attempting to send if the address wasn't set.
|
||||
var/global/allow_panic_bunker_to_cross = 0 //Reconnect a player to a linked server if this server isn't accepting new players
|
||||
|
||||
var/global/medal_hub = null
|
||||
var/global/medal_pass = " "
|
||||
|
||||
@@ -386,6 +386,8 @@
|
||||
global.cross_allowed = 1
|
||||
if("cross_comms_name")
|
||||
cross_name = value
|
||||
if("send_panic_bunkered_to_cross_server")
|
||||
global.allow_panic_bunker_to_cross = 1
|
||||
if("medal_hub_address")
|
||||
global.medal_hub = value
|
||||
if("medal_hub_password")
|
||||
|
||||
@@ -196,6 +196,10 @@ var/next_external_rsc = 0
|
||||
log_access("Failed Login: [key] - New account attempting to connect during panic bunker")
|
||||
message_admins("<span class='adminnotice'>Failed Login: [key] - New account attempting to connect during panic bunker</span>")
|
||||
src << "Sorry but the server is currently not accepting connections from never before seen players."
|
||||
if(global.cross_allowed && global.allow_panic_bunker_to_cross)
|
||||
src << "<span class='notice'>Sending you to [global.cross_address].</span>"
|
||||
winset(src, null, "command=.options")
|
||||
src << link(global.cross_address)
|
||||
qdel(src)
|
||||
return 0
|
||||
|
||||
|
||||
@@ -241,6 +241,11 @@ NOTIFY_NEW_PLAYER_AGE 0
|
||||
## Requires database
|
||||
#PANIC_BUNKER
|
||||
|
||||
## If panic bunker is on and a player is rejected (see above), attempt to send them to the connected server (see CROSS_SERVER_ADDRESS) instead.
|
||||
## Do not use this setting if both servers are bunkered and have this setting, players will just bounce endlessly between rejections.
|
||||
## Requires PANIC_BUNKER and CROSS_SERVER_ADDRESS
|
||||
#SEND_PANIC_BUNKERED_TO_CROSS_SERVER
|
||||
|
||||
## Uncomment to have the changelog file automatically open when a user connects and hasn't seen the latest changelog
|
||||
#AGGRESSIVE_CHANGELOG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user