How hablethedev/moria works
Moria is a Paper server plugin providing player and server-information commands plus connection-session tracking. The main flow is plugin enablement configuring logging and registering command executors and player listeners; commands query Bukkit/player state, format results, and send them to command users. The graph preserves documented commands and sampled MSPT/TPS functionality. Some command implementations and wiring are represented only by the SOURCE INDEX, so unsampled relationships are omitted rather than inferred.
Main entry points: Moria.kt Moria plugin · WhoisCommand.kt Whois command · PositionCommand.kt Position command · MsptCommand.kt MSPT command
Components 20
Plugin lifecycle
- Moria plugin
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Plugin config
src/main/resources/config.yml - Logging level
src/main/kotlin/dev/legiti/hazel/moria/Enum/LoggingLevel.kt
Information commands
- Moria info
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/MoriaCommand.kt - Ping command
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/PingCommand.kt - Position command
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/PositionCommand.kt - Whois command
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/WhoisCommand.kt - Uptime command
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/UptimeCommand.kt - MSPT command
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/MsptCommand.kt - TPS command
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/TpsCommand.kt - Permission executors
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/PermissionExecutor.kt - Tab permissions
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/PermissionTabExecutor.kt
Domain helpers
- Tick statistics
src/main/kotlin/dev/legiti/hazel/moria/Helper/Performance.kt - Position formatting
src/main/kotlin/dev/legiti/hazel/moria/Helper/Position.kt - Player session helper
src/main/kotlin/dev/legiti/hazel/moria/Helper/Player.kt - Time helper
src/main/kotlin/dev/legiti/hazel/moria/Helper/Time.kt
Session tracking
- Join listener
src/main/kotlin/dev/legiti/hazel/moria/Listener/PlayerJoinListener.kt - Leave listener
src/main/kotlin/dev/legiti/hazel/moria/Listener/PlayerLeaveListener.kt
Other components
- Paper server
- Command user
Connections 22
- Paper server → Moria plugin: loads plugin
- Moria plugin → Plugin config: reads config
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Logging level: selects level
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Moria info: registers
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Ping command: registers
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Position command: registers
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Whois command: registers
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Uptime command: registers
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → MSPT command: registers
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → TPS command: registers
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Permission executors: wraps command
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Tab permissions: wraps command
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Join listener: registers listener
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - Moria plugin → Leave listener: registers listener
src/main/kotlin/dev/legiti/hazel/moria/Moria.kt - MSPT command → Tick statistics: calculates statistics
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/MsptCommand.kt - Position command → Position formatting: formats location
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/PositionCommand.kt - Whois command → Position formatting: formats location
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/WhoisCommand.kt - Whois command → Player session helper: gets session duration
src/main/kotlin/dev/legiti/hazel/moria/CommandExecutor/WhoisCommand.kt - Join listener → Moria plugin: records join time
src/main/kotlin/dev/legiti/hazel/moria/Listener/PlayerJoinListener.kt - Leave listener → Moria plugin: clears join time
src/main/kotlin/dev/legiti/hazel/moria/Listener/PlayerLeaveListener.kt - Player session helper → Moria plugin: reads session state
src/main/kotlin/dev/legiti/hazel/moria/Helper/Player.kt - Command user → Moria plugin: invokes commands