Private Chest
PrivateChest
was designed to be a personal inventory for your users which you can access
(Version: 1.3.0 BETA)
Spigot NOT supported
Latest Version
Warning: These files have not been approved by bukkit. Use at your own risk.
Experimental
| Version | Download | Stability |
|---|---|---|
| v1.3.1 | Private Chest v1.3.1 | Untested |
Commands
| Command | Permission | Description | Default | Version |
|---|---|---|---|---|
| /pr | privatechest.cmd.help | Shows a help menu | Op | v1.2.9 |
| /pr help | privatechest.cmd.help | Shows a help menu | Op | v1.2.9 |
| /pr open | privatechest.cmd.open | Allows player to open/generate own private chest | Op | v1.2.9 |
| /pr open <Player> | privatechest.cmd.other | Allows player to open others private chest if it exists. Must be exact name | Op | v1.2.9 |
| /pr reload | privatechest.cmd.reload | Allows player to reload PrivateChest config | Op | v1.3.0 |
Configuration
# +----------------------------------------------------+ # < Config for > # < PrivateChest > # +----------------------------------------------------+ # Set to "true" if you dont want metrics on! opt-out: false # Set to "check" to check for an update and log into console if a update is found. Set to "update" to automaticly download an update when it is found. Set to "none" to do nothing when an update is found.' auto-update: update sign: {} inv: {}
All Permissions:
| Permission | Description | Default | Version |
|---|---|---|---|
| privatechest.* | Gives all permissions | Op | v1.2.9 |
| privatechest.cmd.* | Gives access to all commands | Op | v1.2.9 |
| privatechest.placesign | Allows user to create PrivateChest signs | Op | v1.2.9 |
| privatechest.breaksign | Allows user to break PrivateChest signs | Op | v1.2.9 |
| privatechest.openchest | Allows user to open PrivateChests | Allow | v1.2.9 |
| privatechest.cmd.open | Allows user to open own PrivateChest/generate one | Op | v1.2.9 |
| privatechest.cmd.open.other | Allows user to open others PrivateChest, must be exact name | Op | v1.2.9 |
| privatechest.cmd.help | Allows user to see help menu | Op | v1.2.9 |
| privatechest.cmd.reload | Allows user to reload PrivateChest config | Op | v1.3.0 |
New in v1.3.1
- Defaults fixed
- Version is now 1.7.9 R0.2
- New reload command: /pr reload
- Permission: privatechest.cmd.reload
- Fixed plugin initialization bug
Planned Features
* Allow admins to see players PrivateChest Implemented in v1.2.9
* Create an API for developers (If developers start asking for this in the comments)
* Add McStats implementation Implemented in v1.2.9
* Add auto-updating Implemented in v1.2.9
* Add a command cooldown Implemented in v1.3.0
* Switch to 1.7.9 compiling Implemented in v1.3.0
For Developers
There is a sort of API currently, there is an event for when a player opens a private chest.
How to use:
Set my plugin as a library then import com.gong.util.OpenPrivateChestEvent; That event will be called every time a player opens a private chests
Features
These are all the arguments passed in when the event is called: Block blockOpened, Player opener, Inventory inventoryOpened, Boolean isDoubleChest, InventoryOpenEvent e
Plugin Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- The number of inventorys created
- The number of signs created
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true or editing plugins/PrivateChest/config.yml and changing opt-out to true
Auto-Updating
PrivateChest will either download an update, check for one or do nothing at all depending on what you set in its config or in the global plugins/Updater/config.yml.
To change/disable auto-updating got to plugins/PrivateChest/config.yml and change auto-update to "update" to automaticlly download an update when its found. To check put "check" and to do nothing do "none"
Source
Plugins source can be found here
Be sure to fork and make changes that could improve the plugin. I will keep this up to date!
Known bugs
| Bug | Bug description | Is fixed |
|---|---|---|
| Double-chest bug | If a player opens a double chest that is a private chest, then opens a normal chest, the size will still be of a double-chest | Intentional |
| Inventory-Duplication | If an admin opens another players private chest, that inventory will clone to his own private chest | In v.1.3.0 |
| Defaults | Defaults for permissions not working | In v1.3.0 |
Tickets
To create a ticket, click on the top right of this page and fill out the page. I will respond to ALL tickets and try to fix all bugs found.
Suggestions
I am more than happy to take all of your suggestions/improvments for this plugin!
Comments