-
Notifications
You must be signed in to change notification settings - Fork 0
Web Dashboard
WeThink edited this page Sep 26, 2025
·
1 revision
The WeGuardian Web Dashboard provides a modern web interface for managing punishments, viewing statistics, and monitoring server activity.
- Authentication: Secure login system with session management
- Dashboard: Real-time statistics and server overview
- Punishment Management: Apply and revoke punishments through web interface
- Player Management: Search players and view punishment history
- Live Updates: WebSocket-based real-time updates
- Responsive Design: Works on desktop and mobile devices
Edit your config.yml
file:
web-dashboard:
enabled: true
host: "127.0.0.1"
port: 8080
credentials:
username: "admin"
password: "supersecret"
session-timeout: 3600
ssl:
enabled: false
keystore-path: ""
keystore-password: ""
security:
require-https: false
max-login-attempts: 5
lockout-duration: 300
-
enabled
: Enable/disable the web dashboard -
host
: IP address to bind the server to -
port
: Port number for the web server -
credentials
: Login credentials for the dashboard -
session-timeout
: Session timeout in seconds (default: 3600) -
ssl
: SSL/TLS configuration (optional) -
security
: Security settings for login protection
- Start your WeGuardian server
- Open your web browser
- Navigate to
http://localhost:8080
(or your configured host:port) - Login with the credentials from your config
- View server statistics
- Monitor active punishments
- See online player count
- Real-time updates via WebSocket
- View all active punishments
- Revoke punishments with one click
- Filter by punishment type
- Auto-refresh for real-time updates
- Search for players by name
- Apply new punishments
- View punishment history
- Support for all punishment types (ban, tempban, mute, tempmute, kick, warn)
- Configure dashboard settings
- Change login credentials
- Enable/disable features
-
POST /api/login
- Authenticate user -
POST /api/logout
- Logout user
-
GET /api/punishments/active
- Get active punishments -
POST /api/punishments/apply
- Apply new punishment -
POST /api/punishments/revoke/:id
- Revoke punishment
-
GET /api/stats
- Get server statistics
-
ws://localhost:8080/ws
- Real-time updates
- HttpOnly cookies for session storage
- Configurable session timeouts
- Automatic session cleanup
- Account lockout after failed attempts
- Configurable lockout duration
- Secure credential validation
- Session-based validation
- Secure token handling
- Check if the port is already in use
- Verify the host configuration
- Ensure the dashboard is enabled in config
- Verify credentials in config.yml
- Check for account lockout
- Clear browser cookies if needed
- Ensure firewall allows WebSocket connections
- Check browser console for errors
- Verify WebSocket endpoint is accessible
These are automatically included when building the plugin.
The web dashboard is included in the main WeGuardian plugin. No separate build process is required.
The web interface can be customized by modifying the HTML/CSS/JavaScript in the servlet classes. The design uses modern CSS with a responsive layout.
To add new features:
- Create new servlet classes extending
HttpServlet
- Add API endpoints as needed
- Update the navigation and routing
- Add WebSocket support for real-time updates
For issues or questions about the web dashboard, please check the main WeGuardian documentation or contact the development team.