mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-23 04:58:08 +01:00
Fixes notes for moderator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user