Minepacks
Minepacks is a backpack plugin with different backpack sizes, multilanguage and MySQL storage support. It is a simple plugin, but still has a lot of functions.
Now also on spigot.org!
Features:
- Configuration
- Backpack size controlled by permissions
- Auto item-collect on full inventory (can be enabled in the config)
- Multiple storage back-ends (Files, SQLite, MySQL)
- Multi language support (multiple language file included)
- Item filter (block items from being stored in the backpack)
- Preserves the NBT data of items (everything that can be stored in a chest can be stored in the backpack)
- Support for name changing / UUIDs
- Auto-updater
- API for developers
Requirements:
- Java 8
- Bukkit, Spigot or Paper for Minecraft 1.7 or newer
- (Optional) PCGF PluginLib (Advantages of using the PCGF PluginLib)
Commands:
- /backpack help - Lists all the commands of this plugin.
- /backpack - Opens the players backpack.
- /backpack clean - Removes all items from the players backpack.
- /backpack clean <playername> - Removes all items from another players backpack.
- /backpack <playername> - Shows the backpack of another player.
Permissions:
- backpack.* - Gives access to the full MinePacks functionality. (for admins)
- backpack.use - Allows a player to open the backpack.
- backpack.fullpickup - Allows the player to automatically pick up items when their inventory is full (function needs to be enabled in the config)
- backpack.size.1 - Mini size for a backpack, if the player has backpack permission he will also have at least a backpack with the size 1.
- backpack.size.2 - 2*9 backpack
- backpack.size.3 - 3*9 backpack
- backpack.size.4 - 4*9 backpack
- backpack.size.5 - 5*9 backpack
- backpack.size.6 - 6*9 backpack
- backpack.clean - Allows the player to clean their own backpack.
- backpack.clean.other - Allows the player to clean other players backpacks.
- backpack.others - Allows the player open backpacks of other players.
- backpack.others.edit - Allows the player to edit backpacks of other players.
- backpack.keepOnDeath - Allows the player to keep their items in their backpack on death.
- backpack.noCooldown - Allows to bypass the cooldown to open the backpack.
You can find the full list of permissions as well as their default states in the wiki
Support the plugin:
Developing a plugin like this requires a lot of time. If you like it please consider supporting it with a small donation.
PayPal:
Bitcoin: 3QLAjcZ8CX2E9EayV2D8ACBS5rWf8fY1Lr
Ethereum: 0x0B384d9c99280a9fCDE7DbfF4Ae2A77Cfb227DB9
Litecoin: MX6iPkP52rJu4CXtLRM1gWK7VBkaQi28Ho
Nano: xrb_3qowsxqp4q9ddkeeoci878et97kent77u6qs17ckju1wcmq8qgdbyikkwqk9
If you have donated and would like to be shown in the Special Thanks selection please send me a pm with your transaction details.
Special Thanks:
I would like to thank everyone who has used this plugin, reported bugs, suggested feature, ..., without you guys this plugin would not be what it is now!
I also would like to especially thank some peoples for their support:
- xDizasterCYx - Logo
This plugin has a system to convert Minecraft usernames to Mojang UUIDs; therefore, it uses web connections to the Mojang servers. If you don't want these connections to occur, disable "UseUUIDs" in the config.
This plugin uses the HikariCP library, which includes classes for metrics (but requires an additional library to work, which is not included). All of HikariCP's optional metrics functionality is disabled! This plugin neither collect any data, nor dose it send any data about your server!
This plugin has an auto update function. To disable auto updating, set 'AutoUpdate' to 'false' in 'plugins/Minepacks/config.yml'.
This doesn't appear to be compatible with 1.21.4. I get this error:
12/20 4:19:36 AM [Warning] [Minepacks] [31m################################[0m
12/20 4:19:36 AM [Warning] [04:19:36 WARN]: [Minepacks] [31mYour minecraft version (MC 1.21.4-15-bb76819 (MC: 1.21.4)) is currently not compatible with this plugins version (2.4.31.4-T20240629215752). Please check for updates![0m
12/20 4:19:36 AM [Warning] [04:19:36 WARN]: [Minepacks] [31m################################[0m
Any idea when it will be updated?
This plugin is currently just straight up NOT WORKING for me at all no matter what 1.21 version I download and I cannot for the life of me find out why. Trying to open the backpack just gives this error in the server console:
"Unhandled exception executing command 'backpack open' in plugin Minepacks v2.4.31.1-T20240618222016
java.lang.IncompatibleClassChangeError: Found interface org.bukkit.inventory.InventoryView, but class was expected
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Minepacks.openBackpack(Minepacks.java:332) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Minepacks.lambda$openBackpack$0(Minepacks.java:313) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Database.Database.getBackpack(Database.java:238) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Database.Database.getBackpack(Database.java:244) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Minepacks.openBackpack(Minepacks.java:313) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Minepacks.openBackpack(Minepacks.java:301) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Command.OpenCommand.executeSelf(OpenCommand.java:90) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Command.OpenCommand.execute(OpenCommand.java:67) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Command.OpenCommand.execute(OpenCommand.java:39) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.API.MinepacksCommand.doExecute(MinepacksCommand.java:129) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.API.MinepacksCommand.doExecute(MinepacksCommand.java:38) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.libs.at.pcgamingfreaks.Bukkit.Command.CommandExecutorWithSubCommandsGeneric.onCommand(CommandExecutorWithSubCommandsGeneric.java:39) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Command.CommandManager.onCommand(CommandManager.java:118) ~[Minepacks.jar:?]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.libs.at.pcgamingfreaks.Bukkit.Command.RegisterablePluginCommand.execute(RegisterablePluginCommand.java:157) ~[Minepacks.jar:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:989) ~[paper-1.21.jar:1.21-25-19105a9]
at org.bukkit.craftbukkit.entity.CraftPlayer.performCommand(CraftPlayer.java:769) ~[paper-1.21.jar:1.21-25-19105a9]
at Minepacks.jar/at.pcgamingfreaks.MinepacksStandalone.Bukkit.Listener.ItemShortcut.onItemInteract(ItemShortcut.java:196) ~[Minepacks.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor37.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:1.21-25-19105a9]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.jar:1.21-25-19105a9]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.jar:1.21-25-19105a9]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.21-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:594) ~[paper-1.21.jar:1.21-25-19105a9]
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:550) ~[paper-1.21.jar:1.21-25-19105a9]
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:545) ~[paper-1.21.jar:1.21-25-19105a9]
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:541) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItem(ServerGamePacketListenerImpl.java:1938) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle(ServerboundUseItemPacket.java:47) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.network.protocol.game.ServerboundUseItemPacket.handle(ServerboundUseItemPacket.java:10) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:36) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1478) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1456) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1449) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1408) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1415) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1260) ~[paper-1.21.jar:1.21-25-19105a9]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.jar:1.21-25-19105a9]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]"
PLEASE fix this if possible.
In reply to twitchknightgabriel:
Update to v2.4.31.3
is it update to 1.20.5 or is it coming soon?
Is this updated to 1.20.1?
In reply to piscesgamer97:
Yes
In reply to GeorgH93: no its not there is no files for 1.20.1
I can't figure out how to set permissions in order to allow people to open backpacks as well as change the size, how exactly do I do this? I'm using aternos if that helps.
In reply to SnowyNinja190:
Install a permission plugin like LuckPerms.
And then add the permissions to whoever should have the permissions to use the plugin.
Example for LuckPerms and giving everyone a 6 row backpack:
/lp group default permission set backpack.use
/lp group default permission set backpack.size.6
Are users able to have multiple backpacks?
In reply to TheCrafter:
No
How do i lower or turn off the noise of the backpack opening.... it is very loud. other than that it is great
In reply to thegrowlingpie:
Search for the "Sound" settings in the config.yml, you can disable them there.
i currently have this plugin on my crossplatform server and im wondering if itll work for bedrock players also. I also seem to have a phyiscal backpack in my inventory but i asked another player if they had one in their inventory and they dont. is there a way to enable it for them?
In reply to kuzuri1714:
They probably are missing the "backpack.use" permission.
Since minecraft updated to Java 1.20, my friends and I created new installations for 1.19.4 until Paper and our addons all update to be compatible with 1.20, but for some reason Minepacks has just stopped working.
The backpack items are still in my inventory showing correctly, and all of the other players as player head items. We cannot open them and I've tried uninstall and re-installing but the items as still there and we have since lost all of the command abilities.
In reply to feelsbradm4n:
Paper 549 introduced breaking changes into their bootstrapping API. Either downgrade to Paper 548 or download the v2.4.20.1 update directly from GitHub, since bukkit/curseforge is taking for ever to approve again.
In reply to GeorgH93:
It was the same Problem "Failed to run bootstrapper", but now it works, Thank You so much!
In reply to GeorgH93:
Thank you! I will try it out :)
Hi there,
two questions:
1. Is there any way to "respawn" the Backpack without killing yourself?
2. Is it possible to restrict the amount of backpacks you can have in your inventory?
Asking because I am using DeadChest as a plugin and the Backpack drops as an Item.
Upon picking up the Loot from DeadChest, I have 2 backpacks in my inventory.
(Also open for other/better Death Chest Addons if you have any)
Thanks!