From 1fc7529bf2a315b8f918750cb7ee37eb2f16196e Mon Sep 17 00:00:00 2001 From: Segrain Date: Fri, 23 Feb 2024 03:15:04 +0400 Subject: [PATCH] Check Ckey button. --- code/modules/admin/player_panel/actions/punish.dm | 8 ++++++++ tgui/packages/tgui/interfaces/PlayerPanel.jsx | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/code/modules/admin/player_panel/actions/punish.dm b/code/modules/admin/player_panel/actions/punish.dm index eb80632d8afe..1b7d313b6121 100644 --- a/code/modules/admin/player_panel/actions/punish.dm +++ b/code/modules/admin/player_panel/actions/punish.dm @@ -119,6 +119,14 @@ user.admin_holder.player_notes_show(target.ckey) return TRUE +/datum/player_action/check_ckey + action_tag = "check_ckey" + name = "Check Ckey" + + +/datum/player_action/check_ckey/act(client/user, mob/target, list/params) + user.admin_holder.check_ckey(target.ckey) + return TRUE /datum/player_action/reset_xeno_name action_tag = "reset_xeno_name" diff --git a/tgui/packages/tgui/interfaces/PlayerPanel.jsx b/tgui/packages/tgui/interfaces/PlayerPanel.jsx index 88b30aa51802..286be504e490 100644 --- a/tgui/packages/tgui/interfaces/PlayerPanel.jsx +++ b/tgui/packages/tgui/interfaces/PlayerPanel.jsx @@ -399,6 +399,14 @@ const PunishmentActions = (props) => { disabled={!hasPermission(data, 'show_notes')} onClick={() => act('show_notes')} /> +