https://github.com/monah-rasta/nightvision
Oxide plugin for Rust. Allows players to see at night.
https://github.com/monah-rasta/nightvision
oxide plugin rust
Last synced: 9 days ago
JSON representation
Oxide plugin for Rust. Allows players to see at night.
- Host: GitHub
- URL: https://github.com/monah-rasta/nightvision
- Owner: MONaH-Rasta
- License: mit
- Created: 2025-05-02T14:59:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-02T15:52:40.000Z (about 1 year ago)
- Last Synced: 2025-05-02T16:25:30.431Z (about 1 year ago)
- Topics: oxide, plugin, rust
- Language: C#
- Homepage: https://umod.org/plugins/night-vision
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Night Vision
Oxide plugin for Rust. Allows players to see at night! When using night vision, it will appear daytime to you while the rest of the players will see the normal time of day.
## Permissions
* `nightvision.allowed` -- Allows players to use night vision
* `nightvision.unlimitednvg` -- Allows player to use unlimited night vision goggles
* `nightvision.auto` -- Automatically enable night vision when a player joins (requires `nightvision.allowed`)
## Configuration
```json
{
"chatIconID": "0",
"date": "01/25/2024",
"time": 12.0
}
```
* `chatIconID`: SteamID for rust chat icon
* `date`: Date to use when night vision is active (`MM/DD/YYYY` format)
* `time`: Time to use when night vision is active (`0`-`24`)
## Chat Commands
* `/nightvision help` -- Night vision help
* `/nightvision <0-24>` (`/nv`) -- Toggle night vision on/off with optional time `0`-`24`
* `/unlimitednvg (/unvg)` -- Equip/remove unlimited night vision goggles
## Localization
```json
{
"ChatPrefix": "[Night Vision]",
"NoPerms": "You do not have permission to use this command!",
"TimeLocked": "Time locked to {0}",
"TimeUnlocked": "Time unlocked",
"HelpTitle": "Night Vision Help\n",
"Help1": "/nightvision <0-24>(/nv) - Toggle time lock night vision with optional time 0-24",
"Help2": "/unlimitednvg (/unvg) - Equip/remove unlimited night vision goggles",
"EquipUNVG": "Equipped unlimited night vision goggles",
"RemoveUNVG": "Removed unlimited night vision goggles"
}
```
## For Developers
```csharp
[PluginReference]
Plugin NightVisionRef;
void LockPlayerTime(BasePlayer player, float time)
{
NightVisionRef?.CallHook("LockPlayerTime", player, time);
}
void UnlockPlayerTime(BasePlayer player)
{
NightVisionRef?.CallHook("UnlockPlayerTime", player);
}
bool IsPlayerTimeLocked(BasePlayer player)
{
return (bool)NightVisionRef?.CallHook("IsPlayerTimeLocked", player);
}
```
## Credits
* **Jake_Rich** for the original plugin idea and implementation