How veluxy/smartgifts works
Core Components
• Create these major subsystems:
a. Gift Management System
b. Distribution System
c. Command Handler
d. Logging System
e. Configuration Manager
f. Data Storage
Component Relationships
a. Input Layer:
• Player Commands ('/sclaim')
• Admin Commands (sgift.entry.*)
→ Connect to Command Handler
b. Core Processing:
• Command Handler → Gift Management System
• Gift Management System → Distribution System
• Distribution System → Player Inventory System (Rust Game)
c. Data Flow:
• Configuration Manager → All Components
• Gift Management System ↔ Data Storage
• Distribution System → Logging System
External Integrations
• Discord Webhook Integration
• File System (for logs)
• Oxide Framework
• Rust Game Server
Use these visual elements:
Specific elements
a. Gift Entry Structure:
• ID
• Gift Details (Item ShortName, Amount)
• Distribution Type
• Pending Players
• Given Players
b. Distribution Types:
• SpecificPlayers
• MapPlayers
• ServerPlayers
• Everyone
Important Flows to Highlight
a. Gift Creation Flow:
• Admin Command → Command Handler → Gift Management → Data Storage
b. Gift Distribution Flow:
• Player Wake/Claim → Distribution System → Player Inventory
c. Logging Flow:
• Distribution System → Logging System → Discord/File System
Additional Details
• A permissions layer showing 'smartgifts.admin' access control
• Configuration flow showing how settings affect each component
• Data persistence layer with JSON storage format
• Hooks into Rust game events (player wake-up)