How efesw/scpsl-roleplay-plugin works
RpPluginByEfes is an EXILED roleplay HUD plugin. Players use client commands to submit roleplay messages or roll dice; the manager keeps messages and runs a round-started HUD routine that displays server/player information and nearby messages. Configuration controls formatting and behavior. The README also documents spectator visibility and HintServiceMeow as a required dependency. The sampled source shows lifecycle, command, and HUD wiring; some HUD details come from the README because the manager excerpt is partial.
Main entry points: RpManager.cs RP manager · Plugin.cs Plugin lifecycle · Commands.cs RP commands · Config.cs Plugin config
Components 10
Plugin lifecycle
- Plugin lifecycle
Plugin.cs - Plugin config
Config.cs
Player commands
- RP commands
Commands.cs - Dice command
Commands.cs
HUD and messages
- RP manager
RpManager.cs - Active messages
RpManager.cs - HUD routine
RpManager.cs
Other components
- Player
- EXILED server
- HintServiceMeow
Connections 15
- Player → RP commands: invokes commands
Commands.cs - Player → Dice command: invokes command
Commands.cs - RP commands → Plugin config: checks settings
Commands.cs - Dice command → Plugin config: reads settings
Commands.cs - RP commands → RP manager: adds messages
Commands.cs - Dice command → RP manager: adds roll
Commands.cs - EXILED server → Plugin lifecycle: loads plugin
- Plugin lifecycle → RP manager: creates manager
Plugin.cs - Plugin lifecycle → RP manager: registers round events
Plugin.cs - RP manager → Plugin config: reads settings
RpManager.cs - RP manager → Active messages: stores messages
RpManager.cs - RP manager → HUD routine: starts routine
RpManager.cs - HUD routine → Active messages: reads messages
RpManager.cs - HUD routine → HintServiceMeow: updates hints
RpManager.cs - HUD routine → Player: shows HUD
RpManager.cs