-Modified/codex unlock command. Now you can add 'false' at the end of the command to avoid sending and spamming a message when the player already has unlocked a discovery:
/codex unlock <player> <category> <discovery> (optional, send message)<true/false>