A modern, secure, and responsive web interface for LiteBans punishment management system.
- 🎨 Modern UI/UX - Clean, responsive design with smooth animations and dark/light themes
- 🌍 Multi-language Support - Arabic, Czech, German, Greek, English, Spanish, French, Hungarian, Italian, Japanese, Polish, Romanian, Russian, Slovak, Serbian, Turkish, Chinese (Simplified)
- 📈 Statistics Dashboard - View comprehensive server punishment statistics
- 🔍 Real-time Search - Instant player punishment search with debouncing
- 📱 Mobile Responsive - Works perfectly on all devices and screen sizes
- ⚡ Performance Optimized - Lazy loading, caching, and minimal resource usage
- 🎯 SEO Optimized - Full SEO meta tags, Schema.org, and Open Graph support
- 🎥 Demo Management - Advanced Evidence Management System
- 🔑 Multiple Login Methods
- Traditional password authentication
- Google OAuth 2.0 integration
- Discord OAuth 2.0 integration (beta)
- 🛡️ Advanced Security
- CSRF protection on all forms
- XSS prevention with output escaping
- SQL injection protection via PDO prepared statements
- Rate limiting to prevent brute force attacks
- Secure sessions with HTTPOnly, Secure, SameSite cookies
- Security headers (X-Frame-Options, CSP, etc.)
- Input validation and sanitization
- Three-tier Permission System
- Administrator - Full access to all features and settings
- Moderator - View and manage punishments, limited settings access
- Viewer - Read-only access to punishment data
- OAuth-based User Management
- Automatic user registration via OAuth providers
- Role assignment and management
- Session management with configurable timeout
- Comprehensive Dashboard with real-time statistics
- 30+ Configurable Settings accessible through admin interface
- Site configuration (name, URL, timezone, pagination)
- Display options (UUID visibility, silent punishments)
- Menu visibility controls
- Contact information (Discord, Email, Forum)
- SEO settings (meta tags, schema, social media)
- Security settings (session timeout, rate limiting)
- Performance settings (cache management)
- System Management
- Real-time configuration reload
- Cache clearing and management
- User role management
- Activity logging
- Data Export/Import - Backup and restore punishment data
- Theme System
- Dark and Light themes
- Custom theme color configuration
- Responsive design for all screen sizes
- Avatar Providers
- Crafatar (default)
- Cravatar
- Custom avatar URL support
- Offline player avatar support
- Menu Configuration
- Toggle visibility of Protest, Stats, and Admin menu items
- Customizable footer information
- Easy Installation Wizard - Step-by-step setup process
- Demo Mode - Test the interface with sample data
- Demo Installation Script - Quickly populate database with test punishments
- Hash Generator - Built-in tool for generating secure admin passwords
-
Download the latest release
wget https://github.com/Yamiru/LitebansU/archive/refs/tags/LitebansU.zip # or download from GitHub releases page -
Extract to your web directory
unzip LitebansU.zip cp -r LitebansU/* /var/www/html/litebans/ -
Set permissions
chmod 755 /var/www/html/litebans chmod 644 /var/www/html/litebans/.htaccess chmod 755 /var/www/html/litebans/data
-
Create .htaccess file (if not included)
nano /var/www/html/litebans/.htaccess
-
Run installation wizard
- Open
https://yoursite.com/install.phpin your browser - Follow the step-by-step setup process
- Or manually configure
.envfile (see below)
- Open
- PHP 8.0+ with extensions:
- PDO & pdo_mysql
- mbstring
- intl
- gd/imagick
- curl
- json
- session
- MySQL 5.7+ or MariaDB 10.3+
- Web Server: Apache 2.4+ (mod_rewrite) or Nginx 1.18+
- LiteBans 2.8.0+ installed on your Minecraft server
- Database access to LiteBans tables
1. https://yoursite.com/install.php or edit .env file
Edit .env file with your database credentials:
# Database Configuration
DB_HOST=localhost
DB_PORT=3306
DB_NAME=your_database
DB_USER=your_username
DB_PASS=your_password
DB_DRIVER=mysql
TABLE_PREFIX=litebans_# Site Configuration
SITE_NAME=LiteBansU
FOOTER_SITE_NAME=
ITEMS_PER_PAGE=100
TIMEZONE=UTC
DATE_FORMAT=Y-m-d H:i:s
BASE_URL=
# Default Settings
DEFAULT_THEME=dark
DEFAULT_LANGUAGE=en
SHOW_PLAYER_UUID=false# Admin Configuration
ADMIN_ENABLED=true
ADMIN_PASSWORD=
# Allow password login
ALLOW_PASSWORD_LOGIN=true
Generate admin password hash:
- Open
https://yoursite.com/hash.php - Enter your desired password
- Copy the generated hash
- Paste it into
.envasADMIN_PASSWORD - Delete
hash.phpfile for security
# Google OAuth Configuration
GOOGLE_AUTH_ENABLED=true
GOOGLE_CLIENT_ID=your_client_id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your_client_secretTo get Google OAuth credentials:
- Go to Google Cloud Console
- Create a new project or select existing one
- Enable Google+ API
- Create OAuth 2.0 credentials
- Add authorized redirect URI:
https://yoursite.com/admin/callback/google
# Discord OAuth Configuration
DISCORD_AUTH_ENABLED=true
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secretTo get Discord credentials:
- Go to Discord DEV portal
- Create a new APP
- Add name and create
- click to OAuth2 and mark identify and email
- Add redirect URI:
https://yoursite.com/admin/oauth-callback?provider=discord
- Home - Server statistics and recent activity
- Bans - View all bans with pagination
- Mutes - View all mutes with pagination
- Warnings - View all warnings
- Kicks - View all kicks
- Statistics - View detailed banlist statistics
- Ban Protest - How to Submit a Ban Protest
- Admin - Administration panel (requires authentication)
-
Using Password Login:
- Generate password hash using
hash.php - Add hash to
.envasADMIN_PASSWORD - Login at
https://yoursite.com/admin
- Generate password hash using
-
Using Google OAuth:
- Configure Google OAuth in
.env - Visit
https://yoursite.com/admin - Click "Sign in with Google"
- First user to login becomes Administrator
- Configure Google OAuth in
- Dashboard - Overview of system status and recent activity
- Settings - Modify all configuration options via web interface
- Users - Manage user accounts and permissions
- Cache - Clear cache and reload configuration
- System Info - View PHP, database, and server information
-
Administrator
- Full access to all features
- Can modify all settings
- Can manage users and assign roles
- Can clear cache and reload config
-
Moderator
- View and manage punishments
- Limited settings access
- Cannot manage users or system settings
-
Viewer
- Read-only access to punishment data
- Cannot modify any settings
- Useful for staff members who only need to view punishments
- Search by player name or UUID
- Real-time search with auto-suggestions
- View complete punishment history
- Filter by punishment type
- Light Theme - Clean white interface
- Dark Theme - Eye-friendly dark interface
- Theme preference saved per user
Switch between supported languages:
- AR العربية
- CS Čeština
- DE Deutsch
- GR Ελληνικά
- EN English
- ES Español
- FR Français
- HU Magyar
- IT Italiano
- JA 日本語
- PL Polski
- RO Română
- RU Русский
- SK Slovenčina
- SR Srpski
- TR Türkçe
- CN 中文 (简体)
- Verify database credentials in
.env - Check file permissions (755 for directories, 644 for files)
- Enable error logging:
DEBUG=truein.env - Check PHP error logs
- Verify
ADMIN_PASSWORDhash is correct - Check if OAuth credentials are properly configured
- Ensure cookies are enabled in browser
- Check session settings in
.env
- Verify OAuth credentials in
.env - Check redirect URIs in OAuth provider settings
- Ensure HTTPS is enabled (required for OAuth)
- Check if OAuth provider API is enabled
- Clear browser cache (Ctrl+F5)
- Check JavaScript console for errors
- Verify cookies are enabled
- Ensure
.htaccessis working (Apache)
- Check CSRF token generation
- Verify JavaScript is enabled
- Check rate limiting settings
- Ensure database permissions
- Clear cache via Admin Panel
- Reload configuration after clearing cache
# Set correct permissions
find /var/www/html/litebans -type f -exec chmod 644 {} \;
find /var/www/html/litebans -type d -exec chmod 755 {} \;
chmod 755 /var/www/html/litebans/dataCheck that all required files exist:
.htaccess.envindex.phpconfig/directorycore/directorycontrollers/directorytemplates/directorylang/directoryassets/directorydata/directory (writable)
- Always use HTTPS - Required for OAuth and security
- Keep PHP updated - Use PHP 8.0 or newer
- Use strong passwords - For database and admin accounts
- Delete installation files - Remove
install.phpandhash.phpafter setup - Restrict database access - Use separate user with minimal permissions
- Enable rate limiting - Protect against brute force attacks
- Regular backups - Backup both database and
.envfile - Monitor logs - Check error logs regularly
- Update regularly - Keep LiteBansU updated to latest version
- Limit OAuth permissions - Only grant necessary scopes
- Enable OPcache in PHP for better performance
- Use PHP-FPM instead of mod_php
- Enable Gzip compression (included in .htaccess)
- Set up CloudFlare for CDN and caching
- Optimize MySQL queries and indexes
- Enable cache in
.env:CACHE_ENABLED=true - Adjust cache lifetime based on your needs
- Use connection pooling for high traffic sites
-
Backup everything
cp -r /var/www/html/litebans /var/www/html/litebans-backup mysqldump -u username -p database_name > litebans_backup.sql -
Extract new version
unzip LitebansU-new.zip -d /var/www/html/litebans-new/
If you need to change OAuth credentials:
- Update
.envfile with new credentials - Login to Admin Panel
- Go to Settings → Authentication
- Update and save
- Or reload config via Admin Panel → Cache → Reload Config
- GitHub Issues: Report bugs or request features
- Discord: Join our Discord server
- Documentation: Wiki
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Original LiteBans Plugin: Ruan
- Author: Yamiru
- Icons: Font Awesome
- Fonts: Inter by Rasmus Andersson
- Cravatar: Cravatar
- Crafatar: Crafatar
- To all contributors and testers
- To the Minecraft community for feedback and support
- To everyone who has starred this repository
If this project helped you, please consider:
- ⭐ Starring the repository
- 🐛 Reporting bugs or suggesting features
- 🤝 Contributing to the codebase
- 💬 Sharing with your community
- ☕ Supporting development
Made with ❤️ for the Minecraft community
URL • MarketPlace • Documentation • Issues • Discord
