mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Fixes admin check in new set_telecrystal proc.
This commit is contained in:
@@ -1334,11 +1334,11 @@ proc/admin_notice(var/message, var/rights)
|
|||||||
|
|
||||||
var/crystals
|
var/crystals
|
||||||
|
|
||||||
if(R_ADMIN)
|
if(check_rights(R_ADMIN))
|
||||||
crystals = input("Amount of telecrystals for [H.ckey]", crystals) as null|num
|
crystals = input("Amount of telecrystals for [H.ckey]", crystals) as null|num
|
||||||
if (!isnull(crystals))
|
if (!isnull(crystals))
|
||||||
H.mind.tcrystals = crystals
|
H.mind.tcrystals = crystals
|
||||||
var/msg = "[key_name(usr)] has modified [H.ckey]'s telecrystals to [crystals]."
|
var/msg = "[key_name(usr)] has modified [H.ckey]'s telecrystals to [crystals]."
|
||||||
message_admins(msg)
|
message_admins(msg)
|
||||||
else
|
else
|
||||||
usr << "You do not have access to this command."
|
usr << "You do not have access to this command."
|
||||||
|
|||||||
Reference in New Issue
Block a user