ModeManager
A Minecraft Spigot plugin that allows players to switch between survival and creative modes while maintaining separate inventories and preventing cross-mode item transfers.
- Seamless switching between survival and creative modes
- Separate inventories for each gamemode
- Prevents item transfers between gamemodes
- Creative-built blocks are protected from survival mining
- Blocks dropping items in creative mode
- Admin tools to monitor and manage player mode usage
Installation
- Download the latest release
- Place the .jar in your server's `plugins` folder
- Restart your server
- Configure the plugin in the config.yml file
Usage
Players with appropriate permissions can switch modes using simple commands. The plugin handles all inventory management and protection automatically.
Commands
- `/mode survival` - Switch to survival mode
- `/mode creative` - Switch to creative mode
- `/mode status` - Check your current mode and statistics
- `/mode admin list` - List all players and their current modes (admin only)
- `/mode admin check <player>` - Check a specific player's mode history (admin only)
- `/mode admin force <player> <mode> [reason]` - Force a player into a specific mode (admin only)
Permissions
- `modemanager.use` - Permission to use mode switching (default: true)
- `modemanager.creative` - Permission to access creative mode (default: op)
- `modemanager.admin` - Admin permissions for monitoring and management (default: op)
- `modemanager.admin.list` - Permission to list all players and their modes (default: op)
- `modemanager.admin.check` - Permission to check a player's mode history (default: op)
- `modemanager.admin.force` - Permission to force a player into a specific mode (default: op)
- `modemanager.reload` - Permission to reload the plugin configuration (default: op)
- `modemanager.debug` - Permission to toggle debug mode (default: op)
- `modemanager.update` - Permission to receive update notifications (default: op)
- `modemanager.bypass.itemrestrictions` - Bypass item restrictions in creative mode (default: op)
- `modemanager.bypass.containerplacement` - Bypass container placement restrictions (default: op)
- `modemanager.bypass.mobspawning` - Bypass mob spawning restrictions in creative mode (default: op)
Configuration
The plugin's configuration file (config.yml) is organized into logical sections:
Code (YAML):
# General settings
enabled
: true
# Mode switching settings
mode-switching:
cooldown-seconds
: 30
broadcast-changes
: false
default-mode
: SURVIVAL
# Protection settings
protection:
track-creative-blocks
: true
track-creative-item-frames
: true
prevent-creative-drops
: true
prevent-ender-chest-transfers
: true
prevent-creative-container-placement
: true
prevent-creative-container-taking
: true
prevent-creative-container-blocks
: true
prevent-creative-mob-spawning
: true
# Restricted items in creative mode
restrict-creative-items:
enabled
: true
restricted-items
:
- LAVA_BUCKET
- WATER_BUCKET
- BUCKET
- FLINT_AND_STEEL
- TNT
# And more...
# Inventory management
inventories:
save-armor-contents
: true
save-offhand-items
: true
separate-ender-chest
: true
clear-on-creative
: true
For detailed configuration options, see the comments in the generated config.yml file.
Made with ❤️ by McKenzieJDan