Notes Module
Notes Module
Section titled “Notes Module”The Notes Module provides a comprehensive player notes system for staff to track player behavior and incidents.
🚀 Features
Section titled “🚀 Features”Core Functionality
Section titled “Core Functionality”- Player Notes - Add notes to player profiles
- Note History - Complete note tracking
- Staff Tracking - Who added each note
- Note Management - View, edit, and delete notes
- Search Functionality - Find notes by content or staff
Advanced Features
Section titled “Advanced Features”- Note Categories - Organize notes by type
- Note Privacy - Control who can see notes
- Note Templates - Predefined note formats
- Bulk Operations - Manage multiple notes
- Export Functionality - Export notes to files
📋 Commands
Section titled “📋 Commands”Notes Commands
Section titled “Notes Commands”/notes <player>
Section titled “/notes <player>”View all notes for a player.
Permission: zenith.notes
Parameters:
player- Player name to view notes for
Examples:
/notes Player123/notes Player456/notes <player> add <note>
Section titled “/notes <player> add <note>”Add a note to a player.
Permission: zenith.notes
Parameters:
player- Player name to add note tonote- Note content
Examples:
/notes Player123 add "Frequently asks for items"/notes Player456 add "Helped new players, very friendly"/notes <player> clear
Section titled “/notes <player> clear”Clear all notes for a player.
Permission: zenith.notes
Parameters:
player- Player name to clear notes for
Examples:
/notes Player123 clear/notes Player456 clear⚙️ Configuration
Section titled “⚙️ Configuration”Module Settings
Section titled “Module Settings”enabled: true
settings: max-notes: 100 note-length-limit: 500 auto-timestamp: true staff-tracking: true categories: - "General" - "Behavior" - "Incident" - "Positive" - "Warning"Messages
Section titled “Messages”messages: staff: note_added: "�FF00Note added to {player}!" note_cleared: "�FF00Notes cleared for {player}!" no_notes: "&#FF5555No notes found for {player}!" note_limit: "&#FF5555Note limit reached for {player}!"
player: note_added: "�FF00A note has been added to your profile." note_cleared: "&#FF5555All notes have been cleared from your profile."🔐 Permissions
Section titled “🔐 Permissions”Required Permissions
Section titled “Required Permissions”| Permission | Description |
|---|---|
zenith.notes | View and manage notes |
zenith.notes.add | Add notes to players |
zenith.notes.clear | Clear player notes |
zenith.notes.view | View player notes |
Permission Examples
Section titled “Permission Examples”permissions: - zenith.notes: trueWhat they can do:
- ✅ View all notes
- ✅ Add notes to any player
- ✅ Clear notes from any player
- ✅ Manage note categories
permissions: - zenith.notes.view: true - zenith.notes.add: trueWhat they can do:
- ✅ View player notes
- ✅ Add notes to players
- ❌ Clear notes from players
permissions: - zenith.notes.view: trueWhat they can do:
- ✅ View player notes
- ❌ Add or clear notes
📊 Database Schema
Section titled “📊 Database Schema”Notes Table Structure
Section titled “Notes Table Structure”CREATE TABLE zn_notes ( 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, note_content TEXT NOT NULL, category VARCHAR(50), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);🔧 API Integration
Section titled “🔧 API Integration”Add Note via API
Section titled “Add Note via API”POST /zenith/api/notesAuthorization: Bearer your-token-here
{ "player": "Player123", "note": "Frequently asks for items", "category": "Behavior"}Get Notes via API
Section titled “Get Notes via API”GET /zenith/api/notes?player=Player123Authorization: Bearer your-token-hereClear Notes via API
Section titled “Clear Notes via API”DELETE /zenith/api/notes?player=Player123Authorization: Bearer your-token-here📝 Note Categories
Section titled “📝 Note Categories”Available Categories
Section titled “Available Categories”| Category | Description | Use Case |
|---|---|---|
| General | General observations | Default category |
| Behavior | Behavioral issues | Problematic behavior |
| Incident | Specific incidents | Rule violations |
| Positive | Positive actions | Good behavior |
| Warning | Warning notes | Pre-punishment notes |
Category Usage
Section titled “Category Usage”# Example note categoriescategories: - name: "General" color: "&#FFFFFF" description: "General observations"
- name: "Behavior" color: "&#FFAA00" description: "Behavioral issues"
- name: "Incident" color: "&#FF5555" description: "Specific incidents"
- name: "Positive" color: "�FF00" description: "Positive actions"
- name: "Warning" color: "&#FF0000" description: "Warning notes"🛠️ Troubleshooting
Section titled “🛠️ Troubleshooting”Common Issues
Section titled “Common Issues”Issue: Notes not saving
- Check if module is enabled
- Verify permissions
- Check database connection
- Ensure note length is within limits
Issue: Cannot view notes
- Check view permissions
- Verify player name
- Check database connection
- Ensure notes exist
Issue: Note limit reached
- Check note limit configuration
- Clear old notes if needed
- Increase limit in configuration
- Archive old notes
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 note table size
- Implement note archiving
Monitoring
Section titled “Monitoring”- Track note frequency
- Monitor note categories
- Check staff activity
- Review note content
Need help with the Notes Module? Join our Discord: https://discord.gg/2qCMn6KHj4