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 Feb 26, 2015@Th3PotatoArmyHD
Nope, not yet. I promised to update WaterProof to 1.8 about 5 weeks ago, I'll start with the Uncrafter once that's done.
-
View User Profile
-
Send Message
Posted Feb 22, 2015@Th3PotatoArmyHD
Since that's a really small thing: fixed in dev build #129.
-
View User Profile
-
Send Message
Posted Feb 16, 2015@Th3PotatoArmyHD
I'm sorry, it's a little more complicated than I first though (what a surprise -.-). I'll have to restructure most of the uncrafter code. I think I won't be able to do that this week I'm afraid.
In the meantime, the uncrafter blacklist might help a bit, at least for chimera wings.
-
View User Profile
-
Send Message
Posted Feb 14, 2015Hmm, I don't want to cause you too much of a hassle. I have been holding off from the update due to complications with some other plugins, but if it isn't too much trouble, I would definitely appreciate a 1.7.9 version that isn't lagging so much. I am going to try and upgrade the server pretty soon, but the last attempt I made, several of the plugins I rely on were causing huge issues.
-
View User Profile
-
Send Message
Posted Feb 14, 2015@Th3PotatoArmyHD
Quick status update: I was wrong about mcMMO doing things dirty, the Bukkit API is the bad guy here. Getting a vanilla recipes list is really easy though. But first I'll try to copy the recipes list and sort it so that are more specific than others are checked first. That should theoretically work and would be the cleanest solution.
@Sordrin
According to your timings, you're using VP 2.7.5, the login lags have been fixed in v2.7.7, but that version is really not compatible with MC 1.7.9 builds. Since the Bukkit takedown I'm not exactly able to compile against CraftBukkit builds anymore and I doubt I'll still have a compatible snapshot in my cache, but if updating to a newer MC version is a problem for you, I think I could recompile that one class and repack the whole plugin for you.
-
View User Profile
-
Send Message
Posted Feb 14, 2015Hello, I have been experiencing some severe server freezing when players log in, and have been investigating. It seems as though VP may be the culprit, but I am not entirely sure.
After running /timings on spigot, it looks like VP is hitting the PlayerJoinEvent pretty hard as can be seen here: http://timings.aikar.co/?url=10228378
I am using Version 2.7.7, while searching for a solution to my problem, I came across this post: http://www.spigotmc.org/threads/massive-lag-spikes-on-player-join-solved.31417/
He says you were able to compile a version that "didn't perform I/O in the main thread". I don't know if that is my case, but I am hoping you might have a solution for me. This login lag is driving everyone insane.
Also, I am hoping you might be able to help me with another problem I am having with VP. For some reason, occasionally, and for seemingly no reason at all, the entire VP database is purged. All data lost. I have had to maintain constant backups, and restore the VP table every time it happens. Any ideas?
Thanks.
-
View User Profile
-
Send Message
Posted Feb 14, 2015@Th3PotatoArmyHD
@Th3PotatoArmyHD
Oh wow, never though that would become a problem once.
But to clear this up, VP does not "look at other plugins' crafting recipes", it just looks at those that Minecraft knows, but your plugins seem to inject their recipes there. So I can't really tell where a crafting recipe is coming from. I'm absolutely not gonna hardcode the recipes in my code. Another option would have been to grab the recipes before any plugin modifies them, but I can't do that since my plugin has dependencies that are loaded only when it's too late. It might also be possible to create a second RecipesManager instance that is populated with the vanilla recipes then, but that depends on the minecraft code, which I don't have in mind. Ultimately though it is possible to load the class bytecode, disassemble it, change the class name and then load the class, which would give me a "clean" copy of all recipes. So yes, it would ultimately be possible to only respond to vanilla recipes.
But I don't actually want this. I expected plugins to use the bukkit API to implement custom recipes (i.e. listen to inventory clicks in the crafting inventory, cancel the default action and implement their own). Since they obviously don't do that and choose to inject into Minecraft code, it currently looks to me like they're not injecting properly (I'm not 100% sure though, so I'll verify this later today). I'm taking a wild guess that Chimera Wing is implemented as a feather item with a data value other than 0, i.e. it has the same item ID. In Minecraft, every item has a flag set, indicating whether or not that item has "subtypes", which is the case for dye, for example. I check this flag, otherwise all dye would be treated as bone meal (dye with data value 0) and get uncrafted to bones. Last time I checked, this wasn't the case. The feather item however, does not have that flag set, and my guess is that McMMO doesn't set it either, but it should. I'm also not sure if the same applies to enchantment-based implementations of new items/blocks, but if I remember right, this is the only difference between the "normal" golden apple and the "Notched Apple", so I think it is. I'll check this too though.
-
View User Profile
-
Send Message
Posted Feb 7, 2015@Chalkie19
Yep. I started rewriting VP some time ago already, but that was before the Bukkit takedown. Now I think I can start over for the biggest part. Version 3 will certainly run on Sponge, maybe I'll create a Spigot version too if that is really required. With my current amount of spare time and all the stuff I'm still working on... this summer maybe.
@Th3PotatoArmyHD
Could you please make a video of that? I've had tons of those uncrafting "bugs" reported, none of which I have ever witnessed or was able to reproduce.
-
View User Profile
-
Send Message
Posted Feb 6, 2015I can only guess that VirtualPack 3 is a fair way off due to recent changes in bukkit/minecraft?
-
View User Profile
-
Send Message
Posted Feb 1, 2015@Chalkie19
Unfortunately not. The whole current design has no concept of saving/loading individual packs, only everything at once. Because of this, Multi-Server functionality is really not supported.
I'm certainly gonna change that in VirtualPack 3, which will also support cross-server functionality, but I'm not gonna implement it in VP 2.
-
View User Profile
-
Send Message
Posted Jan 31, 2015Hey Siguza,
Is there an API I can use to force save a players Virtual Pack?
We're hoping to continue using this when we set up a multi-server environment, the MySQL works fine but having the Vpacks save every 300 seconds won't work when players are jumping from server A to server B, Ideally I would like to be able to save the players data on PlayerQuitEvent.
Thanks.
Edit: Sorry about the triple post. Not sure what happened there.
-
View User Profile
-
Send Message
Posted Jan 31, 2015@ErazePlaysMC
Starting today, I'm on vacation for 2 weeks, and I haven't even started working on it, so I'd say 3-4 weeks.
-
View User Profile
-
Send Message
Posted Jan 31, 2015Estimated time on Anvil and Enchantment Table fix? Players are starting to ask for refunds.
-
View User Profile
-
Send Message
Posted Jan 30, 2015@BlissMCserver
As long as it occurs only one time after server start, yes, this is normal. It's a delayed plugin initialization because some dependecies don't fully initialize themselves when being enabled, so I have to wait for them.
-
View User Profile
-
Send Message
Posted Jan 29, 2015Is this normal: http://pastebin.com/6Tfs8g2q It has an extremely high Pct Tick. Ive noticed this with most builds I've tried.
-
View User Profile
-
Send Message
Posted Jan 22, 2015@geor196
Try the latest dev build please. Everything should show up correctly at least, only anvil and enchantmenttable are not gonna work because I didn't have time to fix them yet.
-
View User Profile
-
Send Message
Posted Jan 21, 2015I have spigot 1.7.9 patched for 1.8 and neither virtualpack 2.7.7 or 2.6.6 version display the proper GUI form. It is just a 1x9 empty gui. I also have all dependencies EDIT only these don't work Workbench Enchantment table Anvil
-
View User Profile
-
Send Message
Posted Jan 18, 2015@arriej
I got stuck while updating gcc yesterday, which for some reason required me to remove Java and therefore stop Jenkins. I might have to remove it again later, but for now I reinstalled Java and Jenkins is back up.
-
View User Profile
-
Send Message
Posted Jan 18, 2015Dev Builds is down! :(
"Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."
Hope its backup soon.
-
View User Profile
-
Send Message
Posted Dec 29, 2014@TigerHix
Sure, if you don't care about bookshelves and enchantment over level 5. ^^
And for the anvil it probably wouldn't work either, because the game would try to damage the non-existent anvil block.