mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Revert "Merge pull request #16240 from ShadowLarkens/revert"
This reverts commit885171f985, reversing changes made to3e314f8064.
This commit is contained in:
@@ -201,12 +201,15 @@
|
||||
|
||||
//preferences datum - also holds some persistant data for the client (because we may as well keep these datums to a minimum)
|
||||
prefs = preferences_datums[ckey]
|
||||
if(!prefs)
|
||||
if(prefs)
|
||||
prefs.client = src
|
||||
prefs.load_savefile() // just to make sure we have the latest data
|
||||
prefs.apply_all_client_preferences()
|
||||
else
|
||||
prefs = new /datum/preferences(src)
|
||||
preferences_datums[ckey] = prefs
|
||||
prefs.last_ip = address //these are gonna be used for banning
|
||||
prefs.last_id = computer_id //these are gonna be used for banning
|
||||
prefs.client = src // Only relevant if we reloaded it from the global list, otherwise prefs/New sets it
|
||||
|
||||
hook_vr("client_new",list(src)) //VOREStation Code. For now this only loads vore prefs, so better put before mob.Login() call but after normal prefs are loaded.
|
||||
|
||||
@@ -271,7 +274,7 @@
|
||||
alert = TRUE
|
||||
if(alert)
|
||||
for(var/client/X in GLOB.admins)
|
||||
if(X.is_preference_enabled(/datum/client_preference/holder/play_adminhelp_ping))
|
||||
if(X.prefs?.read_preference(/datum/preference/toggle/holder/play_adminhelp_ping))
|
||||
X << 'sound/effects/tones/newplayerping.ogg'
|
||||
window_flash(X)
|
||||
//VOREStation Edit end.
|
||||
@@ -487,6 +490,12 @@
|
||||
if(prefs)
|
||||
prefs.ShowChoices(usr)
|
||||
|
||||
/client/verb/game_options()
|
||||
set name = "Game Options"
|
||||
set category = "Preferences"
|
||||
if(prefs)
|
||||
prefs.tgui_interact(usr)
|
||||
|
||||
/client/proc/findJoinDate()
|
||||
var/list/http = world.Export("http://byond.com/members/[ckey]?format=text")
|
||||
if(!http)
|
||||
|
||||
Reference in New Issue
Block a user