BetterEnderChest
Secure and configurable Ender Chests! Disable the Ender Chest for certain players, while giving others more rows. Let your players protect their Ender Chest with Lockette and LWC, and let them share their chest. Give some players access to the /enderchest command to open their chest from anywhere. Give your mods the ability ot open anyone's Ender Chest. Ender Chests can be separated between world groups.
BetterEnderChest 2.2
Quote:Spigot 1.8
All updates for Spigot 1.8 won't be posted here, but on the Spigot forums instead: http://www.spigotmc.org/resources/betterenderchest.2073/
See you there!
This plugin makes Ender Chests secure and configurable. Disable the Ender Chest for certain players, while giving others more rows. Let your players protect their Ender Chest with Lockette and LWC, and let them share their chest to their friends in the same way they are already doing that with normal chests. Give some players access to the /enderchest
command to open their chest from anywhere. Give your mods the ability ot open anyone's Ender Chest. Ender Chests can be separated between world groups, so that the plugin is also usable on servers with separated inventories.
Some features required saving the Ender Chests in a separate file. The plugin automatically imports from vanilla, MultiInv, Multiverse-Inventories and WorldInventories, and there is a converter to convert back to vanilla.
Mojang.com UUID conversion
BetterEnderChest 2.2.* automatically converts names to UUIDs. To achieve this, BetterEnderChest uses evilmidget38's UUIDFetcher, which was modified a little bit. This requires access to https://api.mojang.com
. In BetterEnderChest 2.2.1, it is possible to continue using names instead of UUIDs, so that no access to mojang.com is needed. Set useUUIDs
to false
in the config.yml. However, you need to enable this option before any chests are converted, otherwise items will be lost.
For more information, see this wiki page.
whitespace hack
Features
Lockette and LWC integration
Uses Lockette signs or LWC protection so that you can allow other people/groups in your chest. When a chest is protected by you, and if someone else is allowed in your chest, he/she will see your items instead of his/her own items. This is completely optional. To enable this, simply add the Ender Chest to your LWC/Lockette custom block list. (See the installation instructions.)
whitespace hack
Public Ender Chest
Optional: unprotected (by Lockette and LWC) chests are public chests. If you don't add the Ender Chest to the custom block list of those plugins, or if you haven't installed them, there will be no way of making private chests.
whitespace hack
MySQL support
Running multiple servers in one network? BetterEnderChest supports MySQL as of version 2.1. If you use the same database and world group, chests will be shared. Flatfile is also supported, so don't worry if you don't have a database.
whitespace hack
Commands
Adds /enderchest
to open your Ender Chest from anywhere. Only for ops by default. It also adds a few useful administrative commands to open and manage the Ender Chest inventories. Commands work even when the owner of the inventory is offline.
whitespace hack
Chest customization
You can set the number of slots in the chest to make the Ender Chest not too overpowered. Players can have different chest sizes based on permissions. No client mods needed. You can also set the drops of the chest (nothing, itself, 8 obsidian, an Eye of Ender (with or without 8 obsidian), or with an Ender Pearl (with or without 8 obsidian) ).
whitespace hack
Multiworld support
Inventories can be separated between worlds, so that for example you creative worlds can have different Ender Chest inventories than your survival worlds, or your Nether world can have other Ender Chest inventories than the surface world. On installation, BetterEnderChest will automatically copy the group structure from your current inventory seperation plugin, if you have one. It is possible to setup another structure in BetterEnderChest than in the inventory seperation plugin. This can be used to create very interesting ways of transporting items between worlds and even servers.
whitespace hack
Default Ender Chest
You can have a default chest that all new players get when opening their Ender Chest for the first time. Edit it with /bec openinv --
defaultchest or a NBT editor. Changes will be applied after the next (auto)save. Each worldgroup has a different default chest.
whitespace hack
Save file format
The plugin has it's own saving/loading mechanics, either using NBT files or MySQL. This is necessary to make some of the features possible. The plugin automatically imports an Ender Chest when it is opened for the first time. The owner of the Ender Chest doesn't need to be online for this. The importer supports vanilla as well as some other plugins (MultiInv, Multiverse-Inventories and WorldInventories).
It doesn't save too often: every five minutes all changed chests are added to a save queue. You can set how fast chest in the save queue get saved.
whitespace hack
Installation and configuration
Just drop the plugin in the plugins folder. Most features will be disabled by default. Read the guide for starters here or read here about every configuration option.
whitespace hack
Permissions
You can view a complete list of the permissions here. The basic permissions are:
betterenderchest.user
- build, craft, open and destroy Ender Chest. Given to everyone by default.betterenderchest.command
- use all commands. Operators automatically get this permission.betterenderchest.command.openinv.self
- just the permission to open your own Ender Chest (or the public one, as defined in the config.yml) from anywhere using/enderchest
or/betterenderchest openinv
.betterenderchest.slots.upgrade1
- get the number of slots in the Ender Chest as defined in the config.yml.betterenderchest.slots.upgrade2
- get the number of slots in the Ender Chest as defined in the config.yml.
whitespace hack
Commands
<required argument> [optional argument]
- /betterenderchest deleteinv <player> - delete all items in someone's Ender Chest.
- /betterenderchest give <player> <item> [amount] [damage-value] - give an item to an Ender Chest inventory.
- /betterenderchest list - list all cached Ender Chest inventories. Useful for debugging.
- /betterenderchest openinv [player] - open an Ender Chest remotely.
- /betterenderchest viewinv <player> - view anyone's Ender Chest from anywhere. Editing is disabled.
- /betterenderchest reload - reload the configuration.
- /betterenderchest swapinv <player1> <player2> - swap two Ender Chests.
- /enderchest [player] - alias for /betterenderchest openinv [player]
Tips:
- Instead of typing /betterenderchest you could also type /bec.
- As seen in the permissions section above, it is possible to allow /enderchest but disallow /enderchest [player].
- /enderchest and /betterenderchest openinv (without the playername) normally open your own Ender Chest, but there is a setting in the config.yml to open the public Ender Chest instead.
- Use
--
publicchest as a player name to refer to the public Ender Chest, and use--
defaultchest for the default chest. - Use the syntax groupname/playername to open chests from another group. Example: /bec openinv cavegroup/Notch
whitespace hack
Translations
Not all messages can be translated yet, but the most common ones can. See here for more information, along with a premade Dutch translation file.
whitespace hack
@rutgerkok
I tried with and without Spigot and online mode on true, and it still does not convert the files, it instead created new data files for the players, try it, if you have a test server. The UUID's are correct I believe, but the plugin does not convert old Data files to the new named ones.
@Undeadkillz
Make sure that
bungeecord
is set to true in the spigot.yml, otherwise the UUIDs aren't correct (Mojang UUIDs vs UUIDs based on the player name).I made an external converter to convert files back to vanilla long ago, but it got almost no downloads, and when BukkitDev policies became stricter I removed the download link. (It was an external file, which aren't allowed. I can't upload it to BukkitDev, as it only allows plugin uploads.)
At the moment, it isn't possible to convert back to vanilla, so just ask your players to take out their items.
@rutgerkok
Hey, the chests are not saving properly. Atleast in the latest version, for some reason my player chests, are not being converted to UUID (But when someone uses /ec it creates a fresh inv, but saves the file name as their UUID). Also When you disable UUID conversion, it stops the saving feature, so the chests don't save the changes. A quick fix for this is to change autoSaveIntervalSeconds to 1, but that will be resource intensive if you have a lot of players, who access their ec a lot. Another thing, what can I do to convert back to normal enderchests, and stop using this plugin without making players restart their EC over again.
Btw, I am using Spigot #1434 with BungeeCord.
Thanks, Undeadkillz
@IntoPVP
Thanks, should be fixed in 2.2.1.
Sending you a pm with a pastebin of the error I'm getting on players usernames where it show's in the console the conversion failed.
@IntoPVP
For each one? Are Mojang's servers offline? Is your server in offline mode? Well, at least BetterEnderChest prevents any damage to the chest files.
The BukkitDev staff asked me to implement a toggle for UUID lookups, so there will be an option soon to continue using name lookups.
Is there something I need to do?
I uploaded the new bec and it still say's the chests are locked.
I know you said they chests have to be converted, I've restarted the server 2x, but still can't access.
Edit: After looking at my logs I can see the converter failed for each player's chest it tried to convert.
@IntoPVP
A new version, BetterEnderChest 2.2.0, that supports 1.7.8 will be available soon. :)
@lfjewett
I can try to do this, but no promises.
Edit: I'm afraid I can't upload a file to BukkitDev that doesn't support at least Minecraft 1.7.2. You can create such a file yourself by downloading 2.1.5 and 2.1.1, opening both files with 7zip or similar, and moving over the file
nl/rutgerkok/betterenderchest/nms/SimpleNMSHandler.class
from 2.1.1 to 2.1.5. You have then created a 2.1.5 version that supports Minecraft 1.6.4.Is there any chance of patching the 1.6.4 version for those of us who can not upgrade due to mods that do not yet support 1.7.4? Using the older version and MySQL with a bungeecord pair of servers seems to get out of sync and allows items to be lost or duplicated. Judging by your changelog this problem might already be resolved.
After updating my server for 1.7.8 the enderchests won't open for players. (they've been locked to prevent anything messing up)
@user_549827
Try deleting your betterenderchest file that holds the config and reload the server for a fresh one. Remember to save your chest file, you don't want unhappy players.
@user_549837
Are you using BetterEnderChest 2.1.4? Works fine for me.
@harry5572
Thanks, left a reply on github.
Might want to take a look at my PR.
Getting the EnderChests have been disabled, because they cannot save error on server 1.7.5 using the 1.7.5 version. Works if I downgrade server to 1.7.2
@rutgerkok
Sounds like it would work, it stops working whenever the server has been running for more than 2 hours with no one online. Only way to get it to work again is to restart the server.
@MysteryOwner
Sounds like a database connectivity issue. Maybe I should make BetterEnderChest try to automatically reconnect?
Uploaded version 2.1.5, which adds support for the lastest dev builds of CraftBukkit for Minecraft 1.7.5. It needs to be approved, so no download link yet. :)
v2.1.4 has given me the error, without a message in chat. Pastebin: http://pastebin.com/2DHkcptP
@MysteryOwner
Looks like the connection with the database server was lost, but this theory doesn't explain why the issue doesn't occur on 2.1.2.
I haven't found a way yet to reproduce this. However, the upcoming 2.1.4 version (already uploaded to BukkitDev, but not yet approved) will at least show the error every time someone opens a chest.
@rutgerkok
Found an error, chests randomly stopped working. Here's the pastebin: http://bit.ly/1iuSVz7
@MysteryOwner
Thanks, I will look into it.
@HyperCipher
You can't set the slots to zero, a chest with zero slots would look really strange. If you want to prevent players from opening the chest, deny the
betterenderchest.user.open
permission.