mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Added admin logging to PA controller
This commit is contained in:
@@ -46,16 +46,22 @@
|
|||||||
return
|
return
|
||||||
if(href_list["togglep"])
|
if(href_list["togglep"])
|
||||||
src.toggle_power()
|
src.toggle_power()
|
||||||
|
message_admins("[usr] toggled particle accelerator power to [active ? "on" : "off"].")
|
||||||
|
log_admin("[usr] toggled particle accelerator power to [active ? "on" : "off"].")
|
||||||
if(href_list["scan"])
|
if(href_list["scan"])
|
||||||
src.part_scan()
|
src.part_scan()
|
||||||
if(href_list["strengthup"])
|
if(href_list["strengthup"])
|
||||||
src.strength++
|
src.strength++
|
||||||
if(src.strength > 2)
|
if(src.strength > 2)
|
||||||
src.strength = 2
|
src.strength = 2
|
||||||
|
message_admins("[usr] increased particle accelerator power to [strength].")
|
||||||
|
log_admin("[usr] increased particle accelerator power to [strength].")
|
||||||
if(href_list["strengthdown"])
|
if(href_list["strengthdown"])
|
||||||
src.strength--
|
src.strength--
|
||||||
if(src.strength < 0)
|
if(src.strength < 0)
|
||||||
src.strength = 0
|
src.strength = 0
|
||||||
|
message_admins("[usr] decreased particle accelerator power to [strength].")
|
||||||
|
log_admin("[usr] decreased particle accelerator power to [strength].")
|
||||||
src.updateDialog()
|
src.updateDialog()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user