CraftersStaff v7.0.0 'Connector' - Complete optimization for free hosts and new integrations
New Features
Lazy Loading
- Player data is loaded only when they join the server
- Automatically removed from memory when they disconnect
- Significant reduction in RAM consumption
Task Batching
- Data saved in batches every 2 minutes
- Instead of individual operations
- 80% reduction in I/O operations
Packet-Based Vanish with ProtocolLib
- More efficient packet-based vanish
- Up to 40% fewer resources than traditional hidePlayer
- Better performance on older versions
- Automatic ProtocolLib detection with fallback to traditional vanish
PlaceholderAPI - Full Integration
- 9 new placeholders available:
- %craftersstaff_staffmode%
- %craftersstaff_staffmode_status%
- %craftersstaff_vanish%
- %craftersstaff_vanish_status%
- %craftersstaff_frozen%
- %craftersstaff_frozen_status%
- %craftersstaff_full_status%
- %craftersstaff_staff_count%
- %craftersstaff_vanish_count%
- Compatible with TAB, DeluxeChat and other plugins
EssentialsX / CMI Compatibility
- Automatic external vanish detection
- Prevents double invisibility conflicts
- External vanish verification system
Quick Ban from Menu
- Integration with LiteBans and AdvancedBan
- Quick ban button from staff menu
- Executes commands from installed ban plugin
Staff Chat with RGB Colors
- Hex Colors support via IridiumColorAPI
- Hexadecimal colors and gradients
- Compatible with 1.16+ servers
- Customizable RGB format
Command Whitelist
- Blocks non-moderation related commands
- 26 allowed commands by default in staff mode
- Anti-abuse system to prevent staff from playing while on duty
- Bypass permission: craftersstaff.commandwhitelist.bypass
Discord Webhooks
- Automatic notifications to Discord
- Events: clearchat, freeze, unfreeze, staffmode, ban
- Basic system with configurable URL in config.yml
- Asynchronous tasks (doesn't block the server)
Auto Spectator Mode
- Option to automatically switch to /gamemode spectator
- When activating staff mode
- Returns to previous mode when exiting
- Configurable in config.yml
Real-Time Action Bar
- Shows information in the action bar
- Vanish status, staff mode and TPS
- Real-time updates
- Cleaner than chat messages
Data Cache Manager
- Intelligent cache management
- Auto-save every 5 minutes
- ConcurrentHashMap for thread-safety
- Cache system with last access timestamp
External Vanish Detector
- Detects vanish from other plugins
- Prevents invisibility conflicts
- Compatible with multiple vanish plugins
⚡ Database Optimizations
Optimized SQLite
- PRAGMA journal_mode=WAL
- PRAGMA synchronous=NORMAL
- PRAGMA cache_size=10000
- WAL mode for better concurrency
- PreparedStatement with batch for multiple insertions
New Commands and Permissions
Commands
- /staffchat - Dedicated chat for staff (alias: /sc)
Permissions
- craftersstaff.staffchat - Use staff chat
- craftersstaff.commandwhitelist.bypass - Bypass command whitelist
- craftersstaff.quickban - Use quick ban system
⚙️ Updated Configuration
config.yml v7.0.0 - New Sections
- staff-chat: RGB chat configuration
- command-whitelist: Allowed commands list
- discord: Webhook configuration
- integrations: PlaceholderAPI, EssentialsX/CMI, LiteBans/AdvancedBan
- action-bar: Action bar configuration
- performance: Optimizations (lazy loading, batch interval, packet-vanish)
- auto-spectator: Auto spectator mode
messages.yml v7.0.0
- Messages for staff-chat
- Command whitelist messages
- Quick ban messages
- Integration messages
plugin.yml v7.0.0
- Extended optional dependencies: PlaceholderAPI, ProtocolLib, Essentials, CMI, LiteBans, AdvancedBan
Bug Fixes
- Fixed: Player data remained in memory after disconnect
- Fixed: Multiple database writes caused lag on large servers
- Fixed: Traditional vanish consumed too many resources on older versions
- Fixed: Invisibility conflicts when using vanish from other plugins
- Fixed: Staff could use game commands while on duty
- Optimized: SQLite now uses optimal configuration for Minecraft servers
Performance Improvements
- Reduced RAM consumption with lazy loading
- 80% reduction in I/O operations with batch saving
- Packet-based vanish lighter on servers with many players
- SQLite database optimization in WAL mode
- ConcurrentLinkedQueue for pending save operations
General Improvements
- Greater compatibility with 6 popular plugins
- Improved security with command whitelist
- Better staff experience with RGB chat and action bar
- Traceability with Discord webhooks
- More modular code with separated managers
- Better error handling with appropriate try-catch
- All optimizations designed for free hosting
Technical Details
- IridiumColorAPI with fallback to traditional colors
- Reflection for compatibility without hard dependencies
- ProtocolLib PacketContainer for destroy/spawn packets
- Auto-detection of external plugins with softdepend
- Batch saving with transactions and rollback on error
Version: 7.0.0 'Connector'
Compatibility: Minecraft 1.21+ (Paper/Spigot)
Optional Dependencies: Vault, LuckPerms, PlaceholderAPI, ProtocolLib, EssentialsX, CMI, LiteBans, AdvancedBan