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.
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
- Tab Completion: Automatically records every join and leave event in a local SQLite database. - Tab Completion: Calculates and stores the total time players spend on the server. - Tab Completion: Query logs within a specific timeframe (e.g., last 1 hour, 30 minutes). - Tab Completion: 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` - `/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 show` and `/jl player`. (Default: OP) - `jllogger.admin`: Allows access to `/jl reload`. (Default: OP)
Configuration
You can change the plugin language in `config.yml`:
```yaml
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:
```bash mvn clean package ```
The resulting JAR file will be in the `target/` directory.