Timed Night Vision

Is there a way when a new player connect to the server he gets night vision for 5min or a plugin that con do this ?

i also would liek a option fo there to be timed night vision, like once cranted it only lasts for 3 mins

there is a way to do this using timed permissions and serverrewards (https://umod.org/plugins/timed-permissions)
on the command block of server rewards you would add it like this

"commands": {
    "Daytime": {
      "description": "12 hours of being able to use the /nv command to skip the night time. Just type /nv again to disable.",
      "iconName": "nv",
      "commands": [
        "grantperm $player.id nightvision.allowed 12h",
        "pm $player.id \"You now can run /nv in chat, to turn night off. run again to disable.\""
      ],
      "displayName": "12 hours of /nv access",
      "cost": 50,
      "cooldown": 43200
    },​