Home›Java›Mods›WGInventorySave 1.0
Overview
WGInventorySave is a lightweight Bukkit/Spigot plugin that integrates seamlessly with WorldGuard to automatically save and restore player inventories when entering or exiting designated regions. This is perfect for servers with creative zones, minigames, or restricted areas where you want to prevent item exploitation while allowing players to switch gamemodes or access special features.

The plugin adds a custom WorldGuard flag called inventory-save. When enabled on a region, it captures a snapshot of the player's main inventory, armor, offhand, and ender chest upon entry. On exit (with a configurable delay), it restores everything to its original state, overwriting any changes made inside. This helps combat abuse, such as filling inventories in creative mode and smuggling items out.

Key use cases:

No extra dependencies beyond WorldGuard and WorldEdit (required for region management). Compatible with Minecraft 1.21+ and PaperMC/Spigot.

Features
Dependencies
Installation
  1. Download the JAR from [SpigotMC link or your build].
  2. Place WGInventorySave.jar in your server's plugins/ folder.
  3. Ensure WorldGuard and WorldEdit are installed and up-to-date.
  4. Restart your server (/restart or stop/start).
  5. Check latest.log for "[WGInventorySave] WGInventorySave enabled."
Usage
  1. Create or select a region with WorldGuard (e.g., /rg define cloudy).
  2. Add an owner if needed: /rg addowner cloudy <playername>.
  3. Enable the flag: /rg flag cloudy inventory-save allow.
  4. (Optional) Set other flags like gamemode creative for inside the region.
  5. Test: Enter the region—inventory saves. Exit—wait 5 seconds, inventory restores.
If you quit inside and join outside, restore happens on join.

Configuration
Currently hardcoded, but future updates may add config.yml for:

Permissions and Commands
Known Limitations
Support and Updates

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

WGInventorySave 1.0 is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 43 times (via Spigot). Download it and open it directly in the game.

Explore more