Vault System Plugin for Minecraft Skript
This Skript-based vault system allows players to store and access items in personal vaults. Players can interact with their vaults using commands like /pv and /checkpv. The vaults are managed by permission nodes and can support a wide range of customizations.
This is updated version of
PrivateVaults made by
MasterHunter2003
Features:
- Personal Vaults: Each player can have up to 100 vaults, with permission-based access to each vault. Permissions for vaults follow the format vaults.x, where x is the vault number.
- Permission Handling: Players are granted access to vaults based on the vault number they have permission for. For example, if a player has vaults.5 permission, they can access vaults 1 through 5 without needing individual permissions for each vault.
- Vault Visibility: Players can view which vaults contain items. If there are items in a vault, it is displayed in the /pv and /checkpv commands.
- Access Control: Players can view their own vaults, or, if they have the vaults.other permission, they can view the vaults of other players.
Permissions:
- vaults.x: Grants access to vaults up to vault number x. For example, vaults.5 allows access to vaults 1-5.
- vaults.use: Grants access to any vault for the player.
- vaults.other: Grants access to view other players' vaults.
- vaults.check: Allows the player to run the /checkpv command to view other players' vaults.
Commands:
- /pv [<vault_number>] [<offline_player>]: Opens the player's vault (or another player's vault if specified) and displays the items inside. Vault numbers range from 1 to 100. If no vault number is specified, it shows all vaults with items.
- /checkpv <player>: Checks which vaults a player has items in. It displays the vault numbers where items are stored for that player.
Requirements:
- Skript Addons: This system relies on the following Skript addons:
- Skript: The main Skript plugin for Minecraft.
- SkQuery: For advanced functionality (optional depending on your setup).
Example Usage:
- Viewing Your Vaults:
- /pv - Shows all vaults you have opend.
- /pv 3 - Opens vault number 3 for you.
- Viewing Another Player's Vault:
- /pv 3 playerName - Opens vault number 3 for playerName (requires vaults.other permission).
- /checkpv playerName - Shows which vaults playerName has opend.
Configuration:
- The plugin uses the default maximum of 100 vaults. You can change this limit by adjusting the loop 100 times in the code.
For any questions, feel free to reach out to me on Discord:
kingofgames8