
MyNotify | Notify
MyNotify
__Project details__
Project: MyNotify
Dev Language: C# (Oxide/uMod)
Plugin Language: English, German, Russian
Author: @RustFlash
Description
MyNotify is a powerful and customizable notification system for Rust servers. It provides an elegant way to display notifications to players with different styles, colors, and formats. The plugin is API-compatible with the original Notify plugin, allowing it to work seamlessly with other plugins that use the Notify API.
Features
- 5 Predefined Notification Types:
- Info (Blue) - Standard notifications
- Error (Red) - Error messages
- Success (Green) - Success messages
- Warning (Yellow/Orange) - Warning messages
- Event (Purple) - Special event announcements with star symbol
- Highly Customizable:
- Adjust notification position, size, and appearance
- Customize colors, icons, and text styles
- Configure fade-in and fade-out animations
- Set custom duration for each notification type
- Add clickable commands to notifications
- Multi-language Support:
- English
- German
- Russian
- Easy to add more languages
- API Compatible:
- Works with plugins designed for the original Notify
- Simple API for other plugins to send notifications
- Performance Optimized:
- Efficient UI rendering
- Automatic cleanup of expired notifications
- Limited maximum notifications on screen
ChatCommands & ConsoleCommands
🧾 Chat Commands
/mynotify.show [type] [message]- Sends a notification to yourself- Example:
/mynotify.show 0 Welcome to the server!
- Example:
/mynotify.player [playerID] [type] [message]- Sends a notification to a specific player- Example:
/mynotify.player 76561198012345678 2 Your base has been upgraded!
- Example:
/mynotify.allplayers [type] [message]- Sends a notification to all players- Example:
/mynotify.allplayers 4 PVP Event starting in 5 minutes at Dome!
- Example:
Compatibility Commands
These commands are included for compatibility with the original Notify plugin:
/notify.show [type] [message]/notify.player [playerID] [type] [message]/notify.allplayers [type] [message]
Permissions
mynotify.see- Allows player to see notifications (give to all players)mynotify.notify- Allows player to send notifications to themselvesmynotify.player- Allows player to send notifications to a specific playermynotify.allplayer- Allows player to send notifications to all players
Config
| 1 | { |
| 2 | "DisplayType": "Overlay", |
| 3 | "Height": 50.0, |
| 4 | "Width": 260.0, |
| 5 | "XMargin": 20.0, |
| 6 | "YMargin": 5.0, |
| 7 | "YStartPosition": -50.0, |
| 8 | "ShowAtTopRight": true, |
| 9 | "DefaultDuration": 5.0, |
| 10 | "MaxNotificationsOnScreen": 5, |
| 11 | "SendChatMessageIfNoPermission": true, |
| 12 | "NotificationTypes": { |
| 13 | "0": { |
| 14 | "Enabled": true, |
| 15 | "BackgroundColor": "0.1 0.1 0.1 0.9", |
| 16 | "BorderColor": "0.4 0.6 1 1", |
| 17 | "UseGradient": true, |
| 18 | "GradientColor": "0.4 0.6 1 0.35", |
| 19 | "IconText": "i", |
| 20 | "IconColor": "0.4 0.6 1 1", |
| 21 | "TitleKey": "Notification", |
| 22 | "FadeIn": 0.2, |
| 23 | "FadeOut": 0.5, |
| 24 | "SoundEffect": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab" |
| 25 | // ... (additional settings) |
| 26 | }, |
| 27 | // ... (other notification types) |
| 28 | } |
| 29 | } |
Multilingual
Default: EN
DE | ES | FR | IT | NL | PL | PT | RU | SE | TR | UK | CN | KR | CH
API
For Plugin Developers
Add a reference to MyNotify in your plugin:
| 1 | [PluginReference] private Plugin MyNotify; |
API Methods
| 1 | // Send notification to a player |
| 2 | MyNotify?.Call("SendNotify", player, type, message); |
| 3 | |
| 4 | |
| 5 | // Send notification by Steam ID (string) |
| 6 | MyNotify?.Call("SendNotify", "76561198012345678", type, message); |
| 7 | |
| 8 | |
| 9 | // Send notification by Steam ID (ulong) |
| 10 | MyNotify?.Call("SendNotify", 76561198012345678UL, type, message); |
| 11 | |
| 12 | |
| 13 | // Send notification to all players |
| 14 | MyNotify?.Call("SendNotifyToAllPlayers", type, message); |
Notification Types
- 0 - Info (Blue)
- 1 - Error (Red)
- 2 - Success (Green)
- 3 - Warning (Yellow/Orange)
- 4 - Event (Purple)
Example Usage
| 1 | // Info notification (blue) |
| 2 | MyNotify?.Call("SendNotify", player, 0, "Welcome to the server!"); |
| 3 | |
| 4 | // Error notification (red) |
| 5 | MyNotify?.Call("SendNotify", player, 1, "You don't have permission to do that!"); |
| 6 | |
| 7 | // Success notification (green) |
| 8 | MyNotify?.Call("SendNotify", player, 2, "Item purchased successfully!"); |
| 9 | |
| 10 | // Warning notification (yellow/orange) |
| 11 | MyNotify?.Call("SendNotify", player, 3, "PVP will be enabled in 5 minutes!"); |
| 12 | |
| 13 | // Event notification (purple) |
| 14 | MyNotify?.Call("SendNotify", player, 4, "⭐ Special event starting at Airfield in 10 minutes!"); |
Alternative Method (Plugin-Independent)
| 1 | // Use Interface.CallHook for better compatibility |
| 2 | Interface.CallHook("SendNotify", player, type, message); |
load, run, enjoy 💝
Notify.json
| 1 | { |
| 2 | "DisplayType": "Overlay", |
| 3 | "Height": 80.0, |
| 4 | "Width": 450.0, |
| 5 | "XMargin": 20.0, |
| 6 | "YMargin": 5.0, |
| 7 | "YStartPosition": -50.0, |
| 8 | "ShowAtTopRight": false, |
| 9 | "DefaultDuration": 5.0, |
| 10 | "MaxNotificationsOnScreen": 5, |
| 11 | "SendChatMessageIfNoPermission": true, |
| 12 | "NotificationTypes": { |
| 13 | "0": { |
| 14 | "Enabled": true, |
| 15 | "BackgroundColor": "0.12 0.12 0.14 0.95", |
| 16 | "BorderColor": "0.4 0.6 1 1", |
| 17 | "IconText": "i", |
| 18 | "IconColor": "0.4 0.6 1 1", |
| 19 | "TitleKey": "Notification", |
| 20 | "FadeIn": 0.2, |
| 21 | "FadeOut": 0.5, |
| 22 | "SoundEffect": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab", |
| 23 | "IconSettings": { |
| 24 | "AnchorMin": "0.02 0.2", |
| 25 | "AnchorMax": "0.1 0.8", |
| 26 | "FontSize": 24, |
| 27 | "IsBold": true, |
| 28 | "Align": 4, |
| 29 | "Color": "1 1 1 1" |
| 30 | }, |
| 31 | "TitleSettings": { |
| 32 | "AnchorMin": "0.12 0.6", |
| 33 | "AnchorMax": "0.98 0.95", |
| 34 | "FontSize": 18, |
| 35 | "IsBold": true, |
| 36 | "Align": 3, |
| 37 | "Color": "1 1 1 1" |
| 38 | }, |
| 39 | "MessageSettings": { |
| 40 | "AnchorMin": "0.12 0.05", |
| 41 | "AnchorMax": "0.98 0.59", |
| 42 | "FontSize": 16, |
| 43 | "IsBold": false, |
| 44 | "Align": 0, |
| 45 | "Color": "0.9 0.9 0.9 1" |
| 46 | }, |
| 47 | "UseCustomDuration": false, |
| 48 | "CustomDuration": 0.0, |
| 49 | "UseCustomWidth": false, |
| 50 | "CustomWidth": 0.0, |
| 51 | "UseCustomHeight": false, |
| 52 | "CustomHeight": 0.0, |
| 53 | "UseClickCommand": false, |
| 54 | "ClickCommand": "", |
| 55 | "CloseAfterCommand": false |
| 56 | }, |
| 57 | "1": { |
| 58 | "Enabled": true, |
| 59 | "BackgroundColor": "0.12 0.12 0.14 0.95", |
| 60 | "BorderColor": "0.9 0.3 0.3 1", |
| 61 | "IconText": "✕", |
| 62 | "IconColor": "0.9 0.3 0.3 1", |
| 63 | "TitleKey": "Error", |
| 64 | "FadeIn": 0.2, |
| 65 | "FadeOut": 0.5, |
| 66 | "SoundEffect": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab", |
| 67 | "IconSettings": { |
| 68 | "AnchorMin": "0.02 0.2", |
| 69 | "AnchorMax": "0.1 0.8", |
| 70 | "FontSize": 24, |
| 71 | "IsBold": true, |
| 72 | "Align": 4, |
| 73 | "Color": "1 1 1 1" |
| 74 | }, |
| 75 | "TitleSettings": { |
| 76 | "AnchorMin": "0.12 0.6", |
| 77 | "AnchorMax": "0.98 0.95", |
| 78 | "FontSize": 18, |
| 79 | "IsBold": true, |
| 80 | "Align": 3, |
| 81 | "Color": "1 1 1 1" |
| 82 | }, |
| 83 | "MessageSettings": { |
| 84 | "AnchorMin": "0.12 0.05", |
| 85 | "AnchorMax": "0.98 0.59", |
| 86 | "FontSize": 16, |
| 87 | "IsBold": false, |
| 88 | "Align": 0, |
| 89 | "Color": "0.9 0.9 0.9 1" |
| 90 | }, |
| 91 | "UseCustomDuration": false, |
| 92 | "CustomDuration": 0.0, |
| 93 | "UseCustomWidth": false, |
| 94 | "CustomWidth": 0.0, |
| 95 | "UseCustomHeight": false, |
| 96 | "CustomHeight": 0.0, |
| 97 | "UseClickCommand": false, |
| 98 | "ClickCommand": "", |
| 99 | "CloseAfterCommand": false |
| 100 | }, |
| 101 | "2": { |
| 102 | "Enabled": true, |
| 103 | "BackgroundColor": "0.12 0.12 0.14 0.95", |
| 104 | "BorderColor": "0.3 0.9 0.3 1", |
| 105 | "IconText": "✓", |
| 106 | "IconColor": "0.3 0.9 0.3 1", |
| 107 | "TitleKey": "Success", |
| 108 | "FadeIn": 0.2, |
| 109 | "FadeOut": 0.5, |
| 110 | "SoundEffect": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab", |
| 111 | "IconSettings": { |
| 112 | "AnchorMin": "0.02 0.2", |
| 113 | "AnchorMax": "0.1 0.8", |
| 114 | "FontSize": 24, |
| 115 | "IsBold": true, |
| 116 | "Align": 4, |
| 117 | "Color": "1 1 1 1" |
| 118 | }, |
| 119 | "TitleSettings": { |
| 120 | "AnchorMin": "0.12 0.6", |
| 121 | "AnchorMax": "0.98 0.95", |
| 122 | "FontSize": 18, |
| 123 | "IsBold": true, |
| 124 | "Align": 3, |
| 125 | "Color": "1 1 1 1" |
| 126 | }, |
| 127 | "MessageSettings": { |
| 128 | "AnchorMin": "0.12 0.05", |
| 129 | "AnchorMax": "0.98 0.59", |
| 130 | "FontSize": 16, |
| 131 | "IsBold": false, |
| 132 | "Align": 0, |
| 133 | "Color": "0.9 0.9 0.9 1" |
| 134 | }, |
| 135 | "UseCustomDuration": false, |
| 136 | "CustomDuration": 0.0, |
| 137 | "UseCustomWidth": false, |
| 138 | "CustomWidth": 0.0, |
| 139 | "UseCustomHeight": false, |
| 140 | "CustomHeight": 0.0, |
| 141 | "UseClickCommand": false, |
| 142 | "ClickCommand": "", |
| 143 | "CloseAfterCommand": false |
| 144 | }, |
| 145 | "3": { |
| 146 | "Enabled": true, |
| 147 | "BackgroundColor": "0.12 0.12 0.14 0.95", |
| 148 | "BorderColor": "0.9 0.7 0.2 1", |
| 149 | "IconText": "!", |
| 150 | "IconColor": "0.9 0.7 0.2 1", |
| 151 | "TitleKey": "Warning", |
| 152 | "FadeIn": 0.2, |
| 153 | "FadeOut": 0.5, |
| 154 | "SoundEffect": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab", |
| 155 | "IconSettings": { |
| 156 | "AnchorMin": "0.02 0.2", |
| 157 | "AnchorMax": "0.1 0.8", |
| 158 | "FontSize": 24, |
| 159 | "IsBold": true, |
| 160 | "Align": 4, |
| 161 | "Color": "1 1 1 1" |
| 162 | }, |
| 163 | "TitleSettings": { |
| 164 | "AnchorMin": "0.12 0.6", |
| 165 | "AnchorMax": "0.98 0.95", |
| 166 | "FontSize": 18, |
| 167 | "IsBold": true, |
| 168 | "Align": 3, |
| 169 | "Color": "1 1 1 1" |
| 170 | }, |
| 171 | "MessageSettings": { |
| 172 | "AnchorMin": "0.12 0.05", |
| 173 | "AnchorMax": "0.98 0.59", |
| 174 | "FontSize": 16, |
| 175 | "IsBold": false, |
| 176 | "Align": 0, |
| 177 | "Color": "0.9 0.9 0.9 1" |
| 178 | }, |
| 179 | "UseCustomDuration": false, |
| 180 | "CustomDuration": 0.0, |
| 181 | "UseCustomWidth": false, |
| 182 | "CustomWidth": 0.0, |
| 183 | "UseCustomHeight": false, |
| 184 | "CustomHeight": 0.0, |
| 185 | "UseClickCommand": false, |
| 186 | "ClickCommand": "", |
| 187 | "CloseAfterCommand": false |
| 188 | }, |
| 189 | "4": { |
| 190 | "Enabled": true, |
| 191 | "BackgroundColor": "0.12 0.12 0.14 0.95", |
| 192 | "BorderColor": "0.6 0.2 0.8 1", |
| 193 | "IconText": "★", |
| 194 | "IconColor": "0.6 0.2 0.8 1", |
| 195 | "TitleKey": "Event", |
| 196 | "FadeIn": 0.3, |
| 197 | "FadeOut": 0.8, |
| 198 | "SoundEffect": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab", |
| 199 | "IconSettings": { |
| 200 | "AnchorMin": "0.02 0.2", |
| 201 | "AnchorMax": "0.1 0.8", |
| 202 | "FontSize": 24, |
| 203 | "IsBold": true, |
| 204 | "Align": 4, |
| 205 | "Color": "1 1 1 1" |
| 206 | }, |
| 207 | "TitleSettings": { |
| 208 | "AnchorMin": "0.12 0.6", |
| 209 | "AnchorMax": "0.98 0.95", |
| 210 | "FontSize": 18, |
| 211 | "IsBold": true, |
| 212 | "Align": 3, |
| 213 | "Color": "1 1 1 1" |
| 214 | }, |
| 215 | "MessageSettings": { |
| 216 | "AnchorMin": "0.12 0.05", |
| 217 | "AnchorMax": "0.98 0.59", |
| 218 | "FontSize": 16, |
| 219 | "IsBold": false, |
| 220 | "Align": 0, |
| 221 | "Color": "0.9 0.9 0.9 1" |
| 222 | }, |
| 223 | "UseCustomDuration": false, |
| 224 | "CustomDuration": 0.0, |
| 225 | "UseCustomWidth": true, |
| 226 | "CustomWidth": 450.0, |
| 227 | "UseCustomHeight": true, |
| 228 | "CustomHeight": 80.0, |
| 229 | "UseClickCommand": false, |
| 230 | "ClickCommand": "", |
| 231 | "CloseAfterCommand": false |
| 232 | } |
| 233 | }, |
| 234 | "Version": { |
| 235 | "Major": 1, |
| 236 | "Minor": 2, |
| 237 | "Patch": 0 |
| 238 | } |
| 239 | } |


Trusted hosting partner. Affordable game servers with solid support and panels.
Visit site ↗