mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Tightens the permissions on debug, DI panel, view variables
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
//set src in world
|
||||
|
||||
|
||||
if(!usr.client || !usr.client.holder)
|
||||
if(!is_admin(usr))
|
||||
to_chat(usr, "<span class='warning'>You need to be an administrator to access this.</span>")
|
||||
return
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
// This bit is called when clicked in the stat panel
|
||||
/obj/effect/statclick/debug/Click()
|
||||
if(!usr.client.holder)
|
||||
if(!is_admin(usr))
|
||||
return
|
||||
|
||||
usr.client.debug_variables(target)
|
||||
|
||||
@@ -946,8 +946,7 @@ var/list/slot_equipment_priority = list( \
|
||||
add_spell_to_statpanel(S)
|
||||
|
||||
|
||||
if(client && client.holder)
|
||||
|
||||
if(is_admin(src))
|
||||
if(statpanel("DI")) //not looking at that panel
|
||||
stat("Loc", "([x], [y], [z]) [loc]")
|
||||
stat("CPU", "[world.cpu]")
|
||||
|
||||
Reference in New Issue
Block a user