Freeze Module
Freeze Module
Section titled “Freeze Module”The Freeze Module provides player freezing functionality to temporarily restrict player movement and actions.
🚀 Features
Section titled “🚀 Features”Core Functionality
Section titled “Core Functionality”- Player Freezing - Block player movement
- Chat Freeze - Block player chat
- Visual Feedback - Show freeze status to player
- Staff Notifications - Notify staff of freeze actions
- Freeze History - Track freeze actions
Advanced Features
Section titled “Advanced Features”- Selective Freezing - Freeze specific players
- Global Chat Freeze - Freeze all player chat
- Freeze Messages - Customizable freeze notifications
- Staff Tracking - Who froze/unfroze players
📋 Commands
Section titled “📋 Commands”Freeze Commands
Section titled “Freeze Commands”/freeze <player>
Section titled “/freeze <player>”Freeze a player (block movement).
Permission: zenith.freeze
Parameters:
player- Player name to freeze
Examples:
/freeze Player123/freeze Player456/unfreeze <player>
Section titled “/unfreeze <player>”Unfreeze a player.
Permission: zenith.freeze
Parameters:
player- Player name to unfreeze
Examples:
/unfreeze Player123/unfreeze Player456Chat Freeze Commands
Section titled “Chat Freeze Commands”/chatfreeze
Section titled “/chatfreeze”Toggle global chat freeze.
Permission: zenith.chatfreeze
Examples:
/chatfreeze # Toggle chat freeze on/off⚙️ Configuration
Section titled “⚙️ Configuration”Module Settings
Section titled “Module Settings”enabled: true
settings: chat-freeze: true visual-feedback: true freeze-message: "&#FF5555You are frozen! Reason: {reason}" unfreeze-message: "�FF00You have been unfrozen!" staff-notifications: trueFreeze Messages
Section titled “Freeze Messages”messages: staff: freeze_success: "�FF00Player {player} has been frozen!" unfreeze_success: "�FF00Player {player} has been unfrozen!" chat_freeze_enabled: "&#FF5555Chat freeze has been enabled!" chat_freeze_disabled: "�FF00Chat freeze has been disabled!"
player: frozen: "&#FF5555You are frozen! Reason: {reason}" unfrozen: "�FF00You have been unfrozen!" chat_frozen: "&#FF5555Chat is currently frozen!"🔐 Permissions
Section titled “🔐 Permissions”Required Permissions
Section titled “Required Permissions”| Permission | Description |
|---|---|
zenith.freeze | Freeze/unfreeze players |
zenith.chatfreeze | Toggle global chat freeze |
zenith.freeze.notifications | Receive freeze notifications |
Permission Examples
Section titled “Permission Examples”permissions: - zenith.freeze: true - zenith.chatfreeze: true - zenith.freeze.notifications: trueWhat they can do:
- ✅ Freeze/unfreeze players
- ✅ Toggle global chat freeze
- ✅ Receive notifications
permissions: - zenith.freeze: true - zenith.freeze.notifications: trueWhat they can do:
- ✅ Freeze/unfreeze players
- ✅ Receive notifications
- ❌ Toggle global chat freeze
permissions: - zenith.freeze: trueWhat they can do:
- ✅ Freeze/unfreeze players
- ❌ Toggle global chat freeze
- ❌ Receive notifications
📊 Database Schema
Section titled “📊 Database Schema”Freeze Table Structure
Section titled “Freeze Table Structure”CREATE TABLE zn_freezes ( id INT PRIMARY KEY AUTO_INCREMENT, player_uuid VARCHAR(36) NOT NULL, player_name VARCHAR(16) NOT NULL, staff_uuid VARCHAR(36) NOT NULL, staff_name VARCHAR(16) NOT NULL, reason TEXT, frozen_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, unfrozen_at TIMESTAMP NULL, active BOOLEAN DEFAULT TRUE);🔧 API Integration
Section titled “🔧 API Integration”Freeze via API
Section titled “Freeze via API”POST /zenith/api/freezeAuthorization: Bearer your-token-here
{ "player": "Player123", "reason": "Investigation"}Unfreeze via API
Section titled “Unfreeze via API”POST /zenith/api/unfreezeAuthorization: Bearer your-token-here
{ "player": "Player123", "reason": "Investigation complete"}🎮 Player Experience
Section titled “🎮 Player Experience”What Players See
Section titled “What Players See”When frozen, players will see:
- Movement blocked - Cannot move, jump, or fly
- Visual feedback - Freeze message displayed
- Command restrictions - Most commands disabled
- Chat access - Can still chat (unless chat freeze active)
Staff Experience
Section titled “Staff Experience”Staff will see:
- Success messages - Confirmation of freeze actions
- Player status - Who is currently frozen
- Notifications - Real-time freeze updates
- History - Complete freeze log
🛠️ Troubleshooting
Section titled “🛠️ Troubleshooting”Common Issues
Section titled “Common Issues”Issue: Freeze not working
- Check if module is enabled
- Verify permissions
- Check player online status
- Restart server if needed
Issue: Player can still move
- Check freeze status in database
- Verify player permissions
- Check for permission bypasses
- Ensure freeze handler is active
Issue: Chat freeze not working
- Check chat freeze permission
- Verify chat event handler
- Check for conflicting plugins
- Restart server if needed
Debug Mode
Section titled “Debug Mode”Enable debug mode for detailed logging:
debug: enabled: true console: true file: true📈 Performance
Section titled “📈 Performance”Optimization Tips
Section titled “Optimization Tips”- Use MySQL/MariaDB for large servers
- Regular database maintenance
- Monitor freeze table size
- Limit concurrent freezes
Monitoring
Section titled “Monitoring”- Track freeze frequency
- Monitor freeze duration
- Check staff activity
- Review freeze reasons
Need help with the Freeze Module? Join our Discord: https://discord.gg/2qCMn6KHj4