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 2, 2013@Siguza
Using build #26, "true" still spews out the errors. However, "semi" works wonderfully! No errors and the server starts up in 6 seconds compared to 13! Everyone also seems to have their items still in their chests. :)
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Siguza
So because I have too much ram, I won't be able to use multi-threading? Lol. I'll give semi a test, hoping it won't error. :(
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Lazor_16
Try dev build #26 and please post the error log. If it says "see the console" there must be more because the thread exception is something different.
@rtcabooservb
I think that's actually a craftbukkit bug. -.-
And it only occurs when running with a lot of RAM. -.-
Try dev build #26 and set "load-multithreaded" to "semi".
-
View User Profile
-
Send Message
Posted Feb 2, 2013I don't really know what the issue is with my VirtualPack. I try to preform a command and it says, "Internal Error white ececuting command. See the console."
And what the console tells me is this:
[Server] WARNING [VirtualPack] Task #67 for VirtualPack v2.2 generated an exception
Any and all help is appreciated.
Thanks
-Lazor BC
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Siguza
With the setting set to true, this is spammed in the console.
http://pastebin.com/eRxYhCb7
-
View User Profile
-
Send Message
Posted Feb 2, 2013@midnightfang22
This is due to a bug in PEX, I'm currently... not arguing, but... debating with the authors. I submitted a pull request to their github page with a fix for it.
However, since PEX is released under GPL, I uploaded a working version here.
-
View User Profile
-
Send Message
Posted Feb 2, 2013@Siguza
Also, updating permissions and I found that, at least for PEX, using vpack.admin.all doesn't grant me the child permissions in it.
-
View User Profile
-
Send Message
Posted Feb 2, 2013@WelshGamer16
Operating system? Mysql or file? How much data (in KB/MB)? "Data corruption" = completely unable to load or just losses? Any error logs?
@midnightfang22
Let's say the world on which you want to disable VirtualPack is called "narnia". Create a file in the VirtualPack folder called "world_narnia.yml" and paste this into the file:
-
View User Profile
-
Send Message
Posted Feb 2, 2013Can you readd the "disabled-worlds" feature? It was really useful in controlling where everything went.
-
View User Profile
-
Send Message
Posted Feb 2, 2013Hello,
We have a problem with items disappearing and data being corrupted within our server, do you know of any solution or any plugins which conflict with this plugin?
-
View User Profile
-
Send Message
Posted Feb 2, 2013@rtcabooservb
Ok, implemented my idea in dev build #24. Set "load-multithreaded" to true in the config and start your server. I tried it with a 200 MB data.db file and you can't access VirtualPack for a minute or so, but the rest of the server loads fine.
-
View User Profile
-
Send Message
Posted Feb 1, 2013@Siguza
Nah, I have full control of the database and server. Probably just misconfigured something and too lazy to look up how to extend the table limit. Besides, flatfile seems to be fine and loads off of SSDs. :p Anyways, hope your idea works out. I'll be checking the Jenkins CI and github repo.
-
View User Profile
-
Send Message
Posted Feb 1, 2013@rtcabooservb
Got an idea, gonna try something. Btw, I can't do anything about the max of 99 rows in your mysql db, seems like a limitation of your mysql daemon to me.
-
View User Profile
-
Send Message
Posted Feb 1, 2013@Siguza
Do you think it takes so long because it has to initialize and load the user data for the hundreds of players I have that have virtual chests? Loading a couple hundred players individually instead of only 25 like yours. Would there be any way to optimize this better to only load when the user requests the chest instead of loading all the chests on startup? Because mine does not take only 1 second like yours and I'm using 32GB of ram. :(
-
View User Profile
-
Send Message
Posted Feb 1, 2013@Siguza
Thanks!! I didn't see there were dev builds.
-
View User Profile
-
Send Message
Posted Feb 1, 2013@leimekiller68
Use the latest dev build.
@rtcabooservb
I logged everything. 25 Players, everyone has 50 chests, all of them completely full. The server has 512 MB RAM. This was the result.
I don't think it's that bad. And btw, my own server has about a minute to start, and VPack needs 1 second or so there. If you want to profile your server too, you can download the debug version here, but I think it won't be anything else than loading the user data.
-
View User Profile
-
Send Message
Posted Feb 1, 2013Hey, I'm getting this error what causes my server to crash:
java.lang.NoSuchMethodError: net.minecraft.server.v1_4_R1.EntityHuman.getBukkitEntity()Lorg/bukkit/entity/HumanEntity; at net.drgnome.virtualpack.components.VEnchantTable.a(VEnchantTable.java:91) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:1248) at net.minecraft.server.v1_4_R1.Packet108ButtonClick.handle(SourceFile:19) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
It's caused by the command: /v e and i don't know if other /v commands also crash it.
-
View User Profile
-
Send Message
Posted Feb 1, 2013@Siguza
I wouldn't necessarily say it is bad. I typically run a server update once a day in addition to an automated restart every 12 hours to keep memory usage clean. Without VirtualPack, the boot process only takes about 3-4 seconds with no hanging. When VirtualPack is installed, the boot process always hangs when it reaches to the point of loading the plugin, taking the boot process all the way to 12-13 seconds long. The data.db file is only 1.48 MB large. I have tried MySQL, but the boot process still hung on VirtualPack and took 12-13 seconds. In addition, it would not create more than 99 tables, leading to some virtual chest item loss, which is why I'm back to flatfile support. I also have events set to false in the config and check-update to false as I always use the latest dev builds from the Jenkins CI. Save-interval is set to 0 and Economy is set to true. Economy is set to true because I only want a specific group to use specific features, not give everyone a free workbench, chest, etc. It also states in the config setup page that "setting this to false may cause things you don't want".
I'm just curious why it hangs on start-up, doubling, even tripling, the boot time.
-
View User Profile
-
Send Message
Posted Feb 1, 2013@AlphaFarer
I already did this for the next version, but it's as I said: The data is only loaded again if forced by an admin, the autosaver really only saves it. But anyway, we'll see if that will help.
-
View User Profile
-
Send Message
Posted Feb 1, 2013Siguza if you would dissallow using virtual chest, while "after saving the data and before loading it again" item lose probably would be solved?