VirtualPack
VirtualPack
[ Configuration ] [ Commands & Permissions ] [ Download ] [ Source ]
With this plugin, players can buy and use a workbench, an enchantment table, chests, furnaces, brewing stands and a bunch of other tools. Completely virtually. Accessible by chat commands.
Required dependencies: Vault, WorldEdit.
Optional dependencies: ProtocolLib (see Configuration/Materializer)
Notice
According to the Bukkit rules, I have to make you aware of:
Quote:This plugin uses the Curse API to check for updates automatically.
To disable update checking, set 'check-update' to 'false' in 'plugins/VirtualPack/config.yml'.
Features
User-side features:
- Chat-based access to the features of those blocks:
- Workbench
- Anvil
- Enchantment Table
- Chest
- Furnace
- Brewing Stand
- Enderchest
- Workbench
- An Uncrafter (Opposite of Workbench)
- A Materializer (Convert item stacks into others)
- A Trash
- Sending items between players
- Statistics and info pages for everything
- Access via Signs
Admin-side (configurable) features:
- Multiverse support
- Completely configurable commands
- Cooldowns on commands
- Admin access to all users' packs (in full and read-only modes)
- Optional economy integration
- StackableItems support
- Update notification
- MySQL support (data is automatically converted when switching from file)
- Importing (converting) data from:
- AlphaChest
- Backpack
- ChestKeeper
- PlayerVaults
- VirtualChest
- AlphaChest
To Do
- Fix the lags
- Fix all the bugs
- Rewrite the whole plugin
- Cross-server functionality
- Custom smelt/brewing recipes/fuel
- Bind tools to blocks/items
Installation
- Download the VirtualPack.jar and place in in you plugins folder.
- Install Vault the same way.
- Install WorldEdit. If you don't want to install it as a plugin, simply place the jar in plugins/VirtualPack. (I need WorldEdit because of the utilities that are bundled with it, and I need those to register the commands.)
- Install a Vault-compatible permissions plugin (see the Vault project page).
- Now either install a Vault-compatible economy plugin or set the "economy" value in the VirtualPack config to "false".
- Install ProtocolLib if you need it.
- Start your server.
- Maybe read the configuration page.
- Have fun.
Importing other plugins' saves
Supported plugins:
- AlphaChest
- Backpack
- ChestKeeper
- PlayerVaults
- VirtualChest
[ Instructions ]
Dev Builds
Quote:Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk!
[ Dev Builds ]
Donation
Is of course always appreciated. :)
I also keep a list of all donations.
STOP STOP STOP STOP STOP STOP STOP
Alright people, it's too much. Do NOT ask me to:
- Change /v because it is used by vanish already. Change it yourself in the config.
- Update the plugin to a new Minecraft version. I'll do it as soon as possible anyway.
If you do one of the above, you don't deserve to talk to me and I won't do anything else than sending you this video.

-
View User Profile
-
Send Message
Posted Dec 28, 2014@Siguza
Accidentally found that this simple way worked for enchanting tables.
EntityPlayer handle = someone's handle; ContainerEnchantTable container = new ContainerEnchantTable(handle.inventory, handle.world, new BlockPosition(0, 0, 0)); container.checkReachable = false;
-
View User Profile
-
Send Message
Posted Dec 24, 2014I'm sorry, I just downloaded build #127 and started all over again. No problems so far. This was all a week and a half ago. I think I actually had my good database mixed up with the bad and didn't load the table back into mysql properly. Looks like it was only me that was broken. Thanks for the 1.8 update I appreciate it!
-
View User Profile
-
Send Message
Posted Dec 24, 2014@SketchyCrow
Are you using the very newest dev build? An earlier one had exactly that bug too... if you're using the newest one, does that happen every time you reload the plugin, or just once?
-
View User Profile
-
Send Message
Posted Dec 24, 2014I was able to load the plugin successfully using a plugin manager while the server was already running, once. When I start up the server with the plugin enabled I get this error repeated like 100 times in a row and then the server restarts. I'm running spigot 1.8. http://pastebin.com/44yPMckb After that error it shows empty chests and I have to load a backup of the database.
-
View User Profile
-
Send Message
Posted Dec 18, 2014@Siguza
Yes I can do that for you I will send it to you in a msg on bukkit
-
View User Profile
-
Send Message
Posted Dec 18, 2014@McOnePeace
Alright, could you export your vpack table (with phpMyAdmin/Adminer/...), preferably to .sql.gz, upload it somewhere and send me a link?
-
View User Profile
-
Send Message
Posted Dec 17, 2014@Siguza
yes it is version 2.7.8
-
View User Profile
-
Send Message
Posted Dec 17, 2014@McOnePeace
Can't reproduce. Does running "/virtual version" really print "2.7.8"?
-
View User Profile
-
Send Message
Posted Dec 15, 2014I am using the latest version and its not reading the information mysql anymore. it is telling my players the their virtual tools do not exists. some players still have the tools but the /chests were cleared
-
View User Profile
-
Send Message
Posted Dec 8, 2014And #127 is in the making already, fixing workbench, anvil and enchanting table breaking the inventory. Workbench works like a charm, anvil seems to currently not work on diamond items and enchanting table simply does nothing at all.
Ofc I'm gonna fix this, but not in the next few days as I'm extremely busy and those two require a complete rewrite.
-
View User Profile
-
Send Message
Posted Dec 8, 2014@spazmonkey777
Dev build #126 is being built right now with the loading issue fixed. However workbench, enchanting table and anvil are broken. Make sure no one can access them if you're using #126 on a public server! They move around items in the inventory, sometimes removing or duplicating them.
-
View User Profile
-
Send Message
Posted Dec 7, 2014@danielfr789
@Siguza
I also tested the dev build on my test server, and got the same result. I backed up my database from my live server, loaded it up, and everything worked fine at first and my /chest's had all my items. Once I shut down the server, and booted it back up, I got the huge console spam like daniel did. It also seemed to clear the database, so when I logged in my /chest worked, but I had no more items. Here is a copy of my errors (shortened up of course, there were over 10k+ lines of it): http://pastebin.com/TzdTfV8N
Hope it won't be too much trouble to fix, and thanks for the updates so far!
-
View User Profile
-
Send Message
Posted Dec 7, 2014So I took my old data file and used it with dev build 125 on a test server. On first start it ran fine (no errors). But after it saved, I restarted and got this long error (had to shorten it a bit because it was too big for pastebin) http://pastebin.com/Q03RqyQK
-
View User Profile
-
Send Message
Posted Dec 7, 2014@danielfr789
There, dev build is out. Not tested yet, but compiled against Spigot-1.8-R0.1-SNAPSHOT.
-
View User Profile
-
Send Message
Posted Dec 5, 2014As spazmonkey777 said, please update to Spigot 1.8 getting this error: http://pastebin.com/7kpVAjeL
-
View User Profile
-
Send Message
Posted Nov 28, 2014@Siguza
Awesome, hope it isn't too much hassle. Would hate to have to find a new back-pack type plugin, as yours has worked so well for over 2 years now :D
-
View User Profile
-
Send Message
Posted Nov 28, 2014@spazmonkey777
I think I'll do it unless a huge amount of changes is required.
@chrisotherwise
-
View User Profile
-
Send Message
Posted Nov 28, 2014So the new build didn't fix things - still lots of chests being lost every day.
One thing that I have noticed is this. When I check people's chests, using /vpack admin, if the chests are ok then the command returns immediately and the chest gui appears. But if the chests are *bad* then there is a long pause (usually 3-4 seconds) before I get the message "This chest doesn't exist". Is it possible that VPack is doing some API lookup at Mojang that fails - and when that lookup fails, it removes the entire chest set?
Note that we're running with: load-multithreaded=true and lazy-loading-hack=true. Would changing these maybe make a difference?
Update:
I just did the following, for 1 user whose chests got lost:
1. Switched of lazy-loading-hack and load-multithreaded
2. Stopped the server
3. Recovered the user's record in the vpack mysql table (from the previous day's backup)
4. Started the server.
- The correct number of chest packs loaded from the db. But when I tried to access the newly recovered chests, I once again got a long pause then "This chest doesn't exist".
I've done recovery this way on a large number of chests over the last couple of weeks. In about 70% of cases I get the chests back and all is ok. The other times I get the pause and the error message. It's notable that *after* seeing that error messages, there are three ways things can go:
1. I continue getting that message when I try to access the chests (about 60% of the time)
2. I get the chests but they are empty (and stay empty). The user's record in the db seems cleared to an "empty chest default" (about 30% of the time)
3. Sometimes, after a further restart, all the chests suddenly become available and start working as normal (about 10% of the time)
I hope this helps to throw some light on the problem. Happy to make any further tests that might help...
-
View User Profile
-
Send Message
Posted Nov 28, 2014Heya Siguza!
It may be worth checking out Spigot's most recent announcement of their 1.8 builds. Here is a link: http://www.spigotmc.org/threads/bukkit-craftbukkit-spigot-1-8.36598/
Would we possibly see an update with these recent events? I only ask, because we are proud users of VirtualPack on our servers, and would love to continue using it if possible. Thanks for all your work!
-
View User Profile
-
Send Message
Posted Nov 25, 2014Many thanks, I'll try the new build. If that doesn't fix then I'll try and trace exactly what's going on.