PluginApache-2.0
JLLogger
JLLogger is a Paper plugin written in Kotlin that records player Join and Leave events. It provides easy-to-use commands to query session history and player statistics.
6
Downloads
0
Followers
2 months ago
Updated
📦
2
Versions
📖About JLLogger
JLLogger
JLLogger is a Paper 1.21.4 plugin written in Kotlin that records player Join and Leave events. It provides easy-to-use commands to query session history and player statistics.
Features
- Join/Leave Logging: Automatically records every join and leave event in a local SQLite database.
- Session Duration Tracking: Calculates and stores the total time players spend on the server.
- Time-based History: Query logs within a specific timeframe (e.g., last 1 hour, 30 minutes).
- Internationalization (i18n): Supports multiple languages (Default: Japanese and English).
- Tab Completion: Intelligent command suggestions for a better user experience.
Commands
/jl show <time>: Displays join/leave records within the specified time period.- Examples:
/jl show 1h,/jl show 30m,/jl show 1d
- Examples:
/jl player <player>: Displays the join/leave history, total stay duration, and last login of a specific player./jl reload: Reloads the configuration and message files.
Permissions
jllogger.use: Allows access to/jl showand/jl player. (Default: OP)jllogger.admin: Allows access to/jl reload. (Default: OP)
Configuration
You can change the plugin language in config.yml:
# Language: ja (Japanese), en (English)
language: en
Messages are stored in messages_ja.yml and messages_en.yml respectively.
Version
The plugin follows a date-based versioning scheme (e.g., 1.26.02.06.1).
Build
To build the plugin from source, ensure you have Maven and JDK 21 installed:
mvn clean package
The resulting JAR file will be in the target/ directory.