mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 00:49:06 +01:00
Prevents players from joining with unackd warnings (#7509)
This commit is contained in:
@@ -106,6 +106,9 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
|
||||
if (config.sql_saves && !client.prefs.current_character)
|
||||
alert(src, "You have not saved your character yet. Please do so before readying up.")
|
||||
return
|
||||
if(client.unacked_warning_count > 0)
|
||||
to_chat(src, alert("You can not ready up, because you have unacknowledged warnings. Acknowledge your warnings in OOC->Warnings and Notifications."))
|
||||
return
|
||||
|
||||
ready = text2num(href_list["ready"])
|
||||
else
|
||||
@@ -193,6 +196,10 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
|
||||
to_chat(usr, "<span class='danger'>The station is currently exploding. Joining would go poorly.</span>")
|
||||
return
|
||||
|
||||
if(client.unacked_warning_count > 0)
|
||||
to_chat(src, alert("You can not join the game, because you have unacknowledged warnings. Acknowledge your warnings in OOC->Warnings and Notifications."))
|
||||
return
|
||||
|
||||
var/datum/species/S = all_species[client.prefs.species]
|
||||
if((S.spawn_flags & IS_WHITELISTED) && !is_alien_whitelisted(src, client.prefs.species) && config.usealienwhitelist)
|
||||
to_chat(src, alert("You are currently not whitelisted to play [client.prefs.species]."))
|
||||
|
||||
Reference in New Issue
Block a user