Puts multi instance stuff behind a define (#23666)

This commit is contained in:
AffectedArc07
2024-01-14 12:29:12 +00:00
committed by GitHub
parent 9d4a2e4f8b
commit 223d980e02
9 changed files with 18 additions and 93 deletions
+2
View File
@@ -30,10 +30,12 @@
admin = 1
// Lets see if they are logged in on another paradise server
#ifdef MULTIINSTANCE
if(SSdbcore.IsConnected())
var/other_server_login = SSinstancing.check_player(ckey)
if(other_server_login)
return list("reason"="duplicate login", "desc"="\nReason: You are already logged in on server '[other_server_login]'. Please contact the server host if you believe this is an error.")
#endif
//Guest Checking
if(GLOB.configuration.general.guest_ban && check_guest && IsGuestKey(key))