That's a simple plugin, when you execute /light open a menu with the option to enable or disable night vision, and if you disable menu in config.yml, you can use /light off or /light on.
Commands: - /light (open a menu) - light on (Turn on the light) - light off (Turn off the light)