Toggle Da Hub

This commit is contained in:
SoundScopes
2015-10-26 12:24:52 +00:00
parent 0d3439af52
commit acb27889bf
3 changed files with 32 additions and 2 deletions
+15 -1
View File
@@ -638,4 +638,18 @@
usr << "Your varedits will now be hidden from developers"
else
usr << "Your varedits will now be shown to developers"
return
return
/client/proc/toggle_visibily()
set category = "Server"
set name = "Toggle Hub Visibility"
set desc = "Toggle between public and hidden"
if(!check_rights(R_SERVER|R_STEALTH))
return
world.visibility = !world.visibility
message_admins("[src] has toggled the hub [world.visibility ? "public" : "hidden"]")
world.save_visibility(world.visibility)
return
@@ -87,6 +87,7 @@ var/list/admin_verbs_admin = list(
/client/proc/toggledrones,
/client/proc/toggleprayers,
/client/proc/toggle_view_range, /*changes how far we can see*/
/client/proc/toggle_visibily,
/client/proc/secrets,
/client/proc/set_ooc
)
@@ -206,7 +207,8 @@ var/list/admin_verbs_server = list(
/client/proc/Set_Holiday,
/client/proc/ToRban,
/client/proc/toggle_log_hrefs,
/client/proc/toggle_random_events
/client/proc/toggle_random_events,
/client/proc/toggle_visibily
)
var/list/admin_verbs_debug = list(