A comprehensive PocketMine-MP staff mode plugin with inventory management, database integration, and essential staff tools.
- Staff Mode Toggle: Easy
/staffmode on/offcommand - Permission-Based Access: Secure permission system
- Custom Staff Inventory: Essential staff tools in a custom inventory
- Database Integration: Uses libasynql for optimal performance
- Inventory Management: Automatic save/restore of player inventories
- Staff Tools:
- Invisibility toggle
- Teleport to players
- Freeze/unfreeze players
- Random teleport
- Player information viewer
- World teleport
- Staff list
- Settings menu
- Download the plugin files
- Place them in your
pluginsfolder - Install the libasynql dependency
- Restart your server
- Configure the plugin in
config.yml
- libasynql: Required for database operations
- PocketMine-MP: API 5.0.0+
- PHP: 8.1+ (64-bit)
Edit config.yml to customize:
- Database settings (SQLite/MySQL)
- Staff mode behavior
- Staff items and their properties
- Messages and notifications
- Debug options
| Command | Description | Permission |
|---|---|---|
/staffmode <on|off> |
Toggle staff mode | staffmode.use |
/staffmode |
Toggle staff mode | staffmode.use |
/sm <on|off> |
Alias for staffmode | staffmode.use |
/staff <on|off> |
Alias for staffmode | staffmode.use |
| Permission | Description | Default |
|---|---|---|
staffmode |
Base staff mode permission | op |
staffmode.use |
Use staff mode toggle | op |
staffmode.freeze |
Freeze players | op |
staffmode.teleport |
Teleport to players | op |
staffmode.vanish |
Toggle invisibility | op |
staffmode.bypass |
Bypass staff mode restrictions | op |
When in staff mode, you receive a custom inventory with these items:
- Invisibility Toggle (Clock) - Toggle your visibility
- Teleport to Player (Compass) - Teleport to any player
- Freeze Player (Packed Ice) - Freeze/unfreeze players
- Random Teleport (Ender Pearl) - Teleport to random player
- Player Information (Player Head) - View player details
- World Teleport (Grass Block) - Switch between worlds
- Staff List (Book) - View online staff members
- Staff Settings (Redstone) - Configure staff preferences
No additional setup required. The plugin creates a SQLite database automatically.
- Create a MySQL database
- Update the MySQL configuration in
config.yml - The plugin will create the necessary tables automatically
The plugin provides a comprehensive API for developers:
// Get staff manager instance
$staffManager = StaffMode::getInstance()->getStaffManager();
// Check if player is in staff mode
$isInStaffMode = $staffManager->isInStaffMode($player);
// Toggle staff mode
$staffManager->toggleStaffMode($player);
// Get frozen players
$frozenPlayers = $staffManager->getFrozenPlayers();