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!
@zachrywilsn
Although this project is no longer worked on, NMS is different in spigot.
@CholeraJasna
Update your Spigot! Ive not fully tested but if loading is your issue you need to update.
@TheMrGong Spigot is built from bukkit, think of Spigot as the Optifine of bukkit. You plugin may be built off bukkit but should always work with spigot.
Is this plugins run in 1.7.10 ?? Let me know. plz :)
@CholeraJasna
Sorry to say this but, this plugin can't support spiggot.
I use craftbukkit methods to convert a inventory to a string :(
Not sure if spiggot has craftbukkit in its source so unless you don't want saves, I can't make it run for your server :(
@TheMrGong
Sadly, still errors:
[19:27:27 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'pr' in plugin PrivateChest v1.3.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [spi got.jar:git-Spigot-1611] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18 1) [spigot.jar:git-Spigot-1611] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServe r.java:767) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerCon nection.java:1025) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java :862) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java :28) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat .java:65) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184 ) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java :81) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:7 34) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:2 89) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:5 84) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java :490) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6 28) [spigot.jar:git-Spigot-1611] Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_7_R3/invent ory/CraftItemStack at com.gong.main.PrivateChestCommand.onCommand(PrivateChestCommand.java: 95) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spi got.jar:git-Spigot-1611] ... 13 more Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_7_R3.inve ntory.CraftItemStack at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:91) [spigot.jar:git-Spigot-1611] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:86) [spigot.jar:git-Spigot-1611] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0] at com.gong.main.PrivateChestCommand.onCommand(PrivateChestCommand.java: 95) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spi got.jar:git-Spigot-1611] ... 13 more
@CholeraJasna
I put it on the projects description. Warning: The file has not been approved by bukkit. Use at your own risk
Heres whats changed in v1.3.1:
Github Changes
@TheMrGong
Can you send me it somehow by private message? ;)
@CholeraJasna
It should give a permission internally.. http://pastebin.com/yFCDWhi7
And I already have uploaded v1.3.1, which should fix the bugs. I think whats happening is the delay clock isn't running. The delay clock ticks down your time until you can execute another command Without the delay clock, your cooldown would never go down.
@TheMrGong
Ok, now I understand, but if I even want to run /pr command as normal player, in response there is a no permission message from bPermissions. How can I give your plugin higher priority?
@CholeraJasna
I am not sure if spigot is supported.
I will try to fix the null error but I'm not sure if it will fix it.
Also offline isn't supported for 1 commands which is /pr open <Player> because UUID's change if you use different online-modes.
Example:
Player1's UUID in online mode = 81f1se9f1se
Player1's UUID in offline mode = 1f98se1f98fe
If I try to check that against the mojang servers, it will return that there is no player with the name, "Player1".
@TheMrGong Plugin is not working with offline mode, also /pr command is the same as in bPermissions plugin.
Console: [18:17:42 WARN]: [PrivateChest] Command "/pr open <Player>" Will not function wi th offline-mode [18:17:42 ERROR]: Error occurred while enabling PrivateChest v1.3.0 (Is it up to date?) java.lang.IllegalArgumentException: Plugin cannot be null at org.apache.commons.lang.Validate.notNull(Validate.java:192) [spigot. jar:git-Spigot-1611] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.validate(Craf tScheduler.java:397) [spigot.jar:git-Spigot-1611] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.runTaskTimer( CraftScheduler.java:123) [spigot.jar:git-Spigot-1611] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.scheduleSyncR epeatingTask(CraftScheduler.java:119) [spigot.jar:git-Spigot-1611] at com.gong.util.Functions.startCommandClock(Functions.java:386) [?:?] at com.gong.main.Main.onEnable(Main.java:72) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [s pigot.jar:git-Spigot-1611] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:332) [spigot.jar:git-Spigot-1611] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:405) [spigot.jar:git-Spigot-1611] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.jav a:476) [spigot.jar:git-Spigot-1611] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer. java:394) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:3 60) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:3 34) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:2 90) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.jav a:210) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java :458) [spigot.jar:git-Spigot-1611] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6
Just uploaded v1.3.0! Waiting for it to be approved
Hey guys! I'm not really sure if anyone has any real use for this plugin, if you would like me to continue development, please leave a comment!