
A safe OP management plugin that saves and restores player data when granting temporary operator permissions.
A safe and lightweight OP management plugin that saves and restores player data when granting temporary operator permissions.
Created by RedCity Industries | Gamer100309
OpManager is a Minecraft plugin designed for server administrators who need to temporarily grant themselves OP permissions without losing their current gameplay progress. Unlike traditional OP commands, OpManager saves your inventory, position, gamemode, and more before granting OP, then restores everything when you're done.
Perfect for:
OpManager.jar from Releasesplugins/ folderplugins/OpManager/config.yml to your needs/reload or restart the server| Command | Description | Aliases |
|---|---|---|
/opon |
Grants OP and saves your current player data | /op-on, /enableop |
/opoff |
Removes OP and restores your saved player data | /op-off, /disableop |
/opreturnback |
Teleports you back to your saved position (keeps OP) | /opreturn, /opback |
/opRestoreInventory |
Restores your saved inventory without removing OP | /oprestore, /opinv |
# Set your language
language: en # or 'de' for German
# Enable/disable inventory saving
inventory_save: true # false = only saves position & gamemode
# Whitelist protection
whitelist_enabled: true
whitelist:
- YourUsername
- TrustedAdmin
# Storage strategy
storage_strategy: DISK_AND_MEMORY # MEMORY_ONLY, DISK_ONLY, or DISK_AND_MEMORY
| Strategy | Speed | Data Loss Risk | Use Case |
|---|---|---|---|
MEMORY_ONLY |
⚡ Fastest | ⚠️ High (crashes, restarts) | Testing only |
DISK_ONLY |
🐌 Slower | ✅ Low | Servers with frequent restarts |
DISK_AND_MEMORY |
⚡ Fast | ✅ Very Low | Recommended for most servers |
# WARNING: Only enable if your vanish plugin has a dedicated "OFF" command
auto_disable_vanish: false
vanish_disable_command: "vanish off {player}"
⚠️ Important: If your vanish plugin uses a toggle command (like /vanish or /v), leave auto_disable_vanish set to false to avoid accidentally enabling vanish when you meant to disable it!
OpManager supports multiple languages out of the box:
messages_en.yml)messages_de.yml)messages_en.yml or messages_de.ymlmessages_<code>.yml (e.g., messages_fr.yml for French)language: fr in config.ymlOpManager uses a whitelist-based permission system:
whitelist_enabled: true # Set to false to allow ALL players (not recommended!)
whitelist:
- AdminName
- TrustedModerator
⚠️ Security Warning: If whitelist_enabled: false, ANY player can grant themselves OP!
whitelist_enabled: true in productionDISK_AND_MEMORY storage for data safetyIf you die during an active OP session, your items will drop at your death location. When you use /opoff, your saved items will be restored. This means you could pick up the dropped items AND have your saved items, resulting in item duplication!
To prevent duplication:
/opoff FIRST (restores your saved items)The plugin will warn you in chat if you die during an OP session.
If your vanish plugin uses a toggle command (one command to turn on/off), setting auto_disable_vanish: true could accidentally enable vanish instead of disabling it!
Safe commands (dedicated OFF):
vanish off {player} ✅sv off {player} ✅Risky commands (toggle):
vanish {player} ❌v {player} ❌OpManager is extremely lightweight:
| Scenario | RAM Usage |
|---|---|
1 player with /opon |
~40 KB (worst case) |
| 10 players simultaneously | ~400 KB |
| 100 players simultaneously | ~4 MB |
In practice, most sessions use only 10-20 KB per player due to partially filled inventories and fewer enchantments.
Conclusion: OpManager's memory footprint is negligible compared to your server's overall resource usage.
For detailed debug information, enable verbose logging:
verbose_logging: true
This will show detailed information about:
Q: My data wasn't saved!
A: Check if you're on the whitelist and if inventory_save: true in config.yml
Q: Items duplicated after death!
A: This is expected behavior. Always use /opoff before collecting dropped items.
Q: Vanish turned ON instead of OFF!
A: Your vanish plugin uses a toggle command. Set auto_disable_vanish: false in config.yml
Q: Data lost after server crash!
A: If using MEMORY_ONLY storage, this is expected. Switch to DISK_AND_MEMORY for safety.
When you run /opon with inventory_save: true:
With inventory_save: false:
plugins/OpManager/playerdata/<username>.yml (persistent, auto-deleted after /opoff)1. You're playing survival: /opon
→ Your survival data is saved
→ You receive OP permissions
2. Do admin work in creative mode
→ Build, teleport, use WorldEdit, etc.
3. Done with admin tasks: /opoff
→ OP is removed
→ You're teleported back to your survival location
→ Your survival inventory, gamemode, XP, etc. are restored
→ Back to playing survival exactly where you left off!
Contributions are welcome! Feel free to:
Pull Requests are welcome! Please make sure to:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the GNU General Public License v3.0.
What this means:
See the LICENSE file for full details or visit https://www.gnu.org/licenses/gpl-3.0.html
For general questions, feel free to open a discussion on GitHub!
Created by: RedCity Industries | Gamer100309
Version: 4.0
Minecraft Version: 1.21+
API Version: 1.21
If you find this plugin useful, please consider giving it a star on GitHub!
Made with ❤️ by RedCity Industries