Fixes notes for moderator

This commit is contained in:
izac112
2023-12-08 23:51:57 +01:00
parent b47955d82e
commit 9cb09b3cff
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -224,18 +224,16 @@ var/global/floorIsLava = 0
set name = "Player Notes"
if (!istype(src,/datum/admins))
src = usr.client.holder
if (!istype(src,/datum/admins))
if (!check_rights(R_ADMIN|R_MOD, 0)) //YW Edit, make sure you have admin or mod rights to mess with player notes
to_chat(usr, "Error: you are not an admin!")
if (!check_rights(R_ADMIN|R_MOD)) //YW Edit, make sure you have admin or mod rights to mess with player notes
return
PlayerNotesPage(1)
/datum/admins/proc/PlayerNotesFilter()
if (!istype(src,/datum/admins))
src = usr.client.holder
if (!istype(src,/datum/admins))
if (!check_rights(R_ADMIN|R_MOD, 0)) //YW Edit, make sure you have admin or mod rights to mess with player notes
to_chat(usr, "Error: you are not an admin!")
if (!check_rights(R_ADMIN|R_MOD)) //YW Edit, make sure you have admin or mod rights to mess with player notes
return
var/filter = tgui_input_text(usr, "Filter string (case-insensitive regex)", "Player notes filter")
PlayerNotesPage(1, filter)
@@ -266,9 +264,8 @@ var/global/floorIsLava = 0
set name = "Show Player Info"
if (!istype(src,/datum/admins))
src = usr.client.holder
if (!istype(src,/datum/admins))
if (!check_rights(R_ADMIN|R_MOD, 0)) //YW Edit, make sure you have admin or mod rights to mess with player notes
to_chat(usr, "Error: you are not an admin!")
if (!check_rights(R_ADMIN|R_MOD)) //YW Edit, make sure you have admin or mod rights to mess with player notes
return
var/datum/tgui_module/player_notes_info/A = new(src)