mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
[MIRROR] move a bunch of admin verbs to the subsystem (#12424)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
ee11cc3707
commit
8c4534b91d
@@ -1903,13 +1903,12 @@
|
||||
else if(href_list["cryoplayer"])
|
||||
if(!check_rights(R_ADMIN|R_EVENT)) return
|
||||
|
||||
var/mob/living/carbon/M = locate(href_list["cryoplayer"])
|
||||
if(!istype(M))
|
||||
var/mob/living/carbon/carbon_target = locate(href_list["cryoplayer"])
|
||||
if(!istype(carbon_target))
|
||||
to_chat(usr, span_warning("Mob doesn't exist!"))
|
||||
return
|
||||
|
||||
var/client/C = usr.client
|
||||
C.despawn_player(M)
|
||||
SSadmin_verbs.dynamic_invoke_verb(usr.client, /datum/admin_verb/despawn_player, carbon_target)
|
||||
|
||||
// player info stuff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user