๐ PluginManagerWeb
PluginManagerWeb is a powerful web-based management panel for Minecraft (Paper 1.20+) servers. Inspired by LuckPerms' web editor, it provides a modern, feature-rich dashboard for managing plugins, viewing metrics, editing configurations, and monitoring your server.
โจ Features
๐ฎ Plugin Management
- Real-time plugin overview - View all installed plugins with their status, version, and authors
- Enable/Disable/Reload - Control plugins directly from the web interface
- Plugin details - Access comprehensive information about each plugin
- Action audit logging - Track all administrative actions for security and compliance
๐ฆ GitHub Integration
- Release tracking - Automatically fetch releases from configured GitHub repositories
- Version comparison - See available updates for your plugins
- One-click updates - Download and install plugin updates directly from GitHub
- Release notes - View changelogs and release information
โ๏ธ Configuration Management
- File browser - Navigate and view plugin configuration files
- Online editor - Edit config files directly in the browser
- Automatic backups - Every config change is backed up automatically
- Rollback support - Restore previous configurations with one click
- Safe editing - Path validation prevents access outside plugin directories
๐ Metrics & Monitoring
- Server statistics - CPU, memory, TPS, and player count
- Plugin metrics - Custom metrics reported by plugins
- Aggregated views - Overview of top plugins by usage
- Public API - Other plugins can report custom metrics
๐ Security
- Token-based authentication - Secure API access with admin tokens
- IP whitelisting - Restrict access to specific IP addresses
- Audit logging - All sensitive actions are logged with user, IP, and timestamp
- Role-based access - Future support for LuckPerms group integration
๐ Modern Web Interface
- Dark theme - Beautiful, modern design optimized for readability
- Responsive layout - Works on desktop, tablet, and mobile devices
- Real-time updates - WebSocket connection for live server events
- Intuitive navigation - Easy-to-use sidebar and tab-based interface
๐ Requirements
- Minecraft Server: Paper 1.20.4 or higher (Spigot may work but not officially supported)
- Java: Java 17 or higher
- Memory: Minimal overhead (~20MB)
๐ Installation
-
Download the latest release from the Releases page
-
Place the JAR file in your server's plugins/ directory
-
Start your Minecraft server
-
Configure the plugin by editing plugins/PluginManagerWeb/config.yml
-
Restart the server to apply configuration changes
โ๏ธ Configuration
Edit plugins/PluginManagerWeb/config.yml:
pluginmanager:
enabled: true
web:
enabled: true
port: 8080
bind_address: 0.0.0.0
tls:
enabled: false
cert_path: cert.pem
key_path: key.pem
allowed_ips: [] # Empty = allow all
auth:
# IMPORTANT: Change this to a secure random token!
admin_token: "CHANGE_ME"
use_luckperms_groups: false
github:
token: "" # Optional GitHub personal access token
repos:
- "MatisseAD/ReanimateMC"
- "MatisseAD/EvenMoreItems"
- "MatisseAD/CryptocurrencyMC"
- "MatisseAD/HammerMC"
auto_update: false
database:
type: sqlite
sqlite_path: data/pluginmanager.sqlite
Configuration Options
Web Server
port - HTTP port (default: 8080)
bind_address - Interface to bind to (0.0.0.0 = all interfaces)
allowed_ips - IP whitelist (empty array = allow all)
tls - HTTPS configuration (requires valid certificates)
Authentication
admin_token - API access token (MUST BE CHANGED)
use_luckperms_groups - Enable LuckPerms integration (coming soon)
GitHub Integration
token - GitHub personal access token (optional, for private repos or higher rate limits)
repos - List of repositories to track for updates
auto_update - Automatically download updates (not recommended for production)
Database
type - Database type (currently only sqlite is supported)
sqlite_path - Path to SQLite database file
๐ Accessing the Dashboard
-
Open your browser and navigate to http://YOUR_SERVER_IP:8080/
-
Enter your admin_token from the configuration
-
Click Login
You're now ready to manage your plugins!
๐ API Usage
Authentication
All API requests (except /api/health) require an Authorization header:
Authorization: Bearer YOUR_ADMIN_TOKEN
Available Endpoints
Server Information
GET /api/health # Health check (no auth required)
GET /api/server # Detailed server information
Plugin Management
GET /api/plugins # List all plugins
GET /api/plugins/{name} # Get plugin details
POST /api/plugins/{name}/action # Enable/disable/reload plugin
GET /api/plugins/{name}/releases # Get GitHub releases
Configuration
GET /api/plugins/{name}/config # List config files
GET /api/plugins/{name}/config/file?path=... # Get file content
POST /api/plugins/{name}/config/file # Save config file
GET /api/plugins/{name}/config/backups # List backups
POST /api/plugins/{name}/config/rollback # Restore backup
Metrics
GET /api/plugins/{name}/metrics # Get plugin metrics
GET /api/metrics/overview # Get all metrics overview
Example: Enable a Plugin
curl -X POST http://localhost:8080/api/plugins/MyPlugin/action \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action": "enable"}'
๐ Plugin Integration
Other plugins can report custom metrics to PluginManagerWeb:
import fr.matissead.pluginmanagerweb.PluginManagerWeb;
import fr.matissead.pluginmanagerweb.api.PluginManagerWebAPI;
import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin;
public class MyPlugin extends JavaPlugin {
private PluginManagerWebAPI pmwAPI;
@Override
public void onEnable() {
// Get PluginManagerWeb API
Plugin pmw = Bukkit.getPluginManager().getPlugin("PluginManagerWeb");
if (pmw instanceof PluginManagerWeb) {
pmwAPI = ((PluginManagerWeb) pmw).getAPI();
}
}
public void reportMetric() {
if (pmwAPI != null) {
// Increment a counter
pmwAPI.incrementCounter("MyPlugin", "commands_executed", 1);
// Record an event
Map<String, Object> payload = Map.of(
"player", "Steve",
"command", "/mycommand"
);
pmwAPI.recordEvent("MyPlugin", "command_executed", payload);
// Set a gauge value
pmwAPI.setGauge("MyPlugin", "active_users", 42);
}
}
}
๐๏ธ Building from Source
# Clone the repository
git clone https://github.com/MatisseAD/PluginManagerWeb.git
cd PluginManagerWeb
# Build with Gradle
./gradlew shadowJar
# The JAR will be in build/libs/PluginManagerWeb.jar
๐ Project Structure
src/main/java/fr/matissead/pluginmanagerweb/
โโโ api/
โ โโโ controllers/ # REST API controllers
โ โ โโโ ServerController.java
โ โ โโโ PluginController.java
โ โ โโโ ConfigController.java
โ โ โโโ MetricsController.java
โ โโโ websocket/ # WebSocket handlers
โ โ โโโ EventsWebSocketHandler.java
โ โโโ PluginManagerWebAPI.java # Public API interface
โโโ config/ # Configuration management
โโโ github/ # GitHub API client
โโโ metrics/ # Metrics collection service
โโโ model/ # Data models
โโโ persistence/ # Database layer (DAOs)
โโโ security/ # Authentication & authorization
โโโ PluginManagerWeb.java # Main plugin class
โโโ WebServer.java # Javalin web server
src/main/resources/
โโโ config.yml # Default configuration
โโโ plugin.yml # Bukkit plugin definition
โโโ web/ # Frontend assets
โโโ index.html
โโโ css/style.css
โโโ js/
โโโ api.js
โโโ app.js
๐ ๏ธ Technology Stack
- Backend Framework: Javalin 5.6
- Database: SQLite with HikariCP connection pooling
- HTTP Client: OkHttp
- JSON: Gson
- Logging: SLF4J
- Frontend: Vanilla JavaScript (no frameworks)
๐ Security Considerations
- Change the default token - The
admin_token must be changed immediately
- Use HTTPS in production - Configure TLS for encrypted communication
- Restrict IPs - Use the
allowed_ips whitelist in production environments
- Secure the port - Consider using a reverse proxy (nginx, Caddy) with rate limiting
- Regular updates - Keep the plugin updated for security patches
๐ Troubleshooting
Web server doesn't start
- Check if the port is already in use:
netstat -tulpn | grep 8080
- Check server logs for error messages
- Ensure Java 17+ is installed
Can't access the dashboard
- Verify the bind_address is correct (use 0.0.0.0 for all interfaces)
- Check firewall rules allow the port
- Confirm your IP is in the allowed_ips list (if configured)
Authentication fails
- Verify the token matches the one in config.yml
- Check for extra spaces or quotes in the token
- Try clearing browser cache/cookies
๐ค Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature)
- Commit your changes (
git commit -m 'Add amazing feature')
- Push to the branch (
git push origin feature/amazing-feature)
- Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
๐ Support