Extra Inventory
Description
Extra Inventory is an extra inventory players can access to carry more items during their adventures through
the minecraft world! Simple to use and effortless setup make it a must for any server!
Features
- super simple setup and install!
- custom size inventories for different ranks!
- easy player inventory viewing for staff!
- disable in other worlds
- efficient and safe inventory saving!
- no config to setup! (may change in the future)
- ....more to come? suggestions welcome :)
How to install
- download extraInventory.jar and place in plugins folder
- set permissions as necessary
- restart server and your ready!
Commands
/inv //opens your extra inventory! /inv spy <player name> //open and edit other players inventory /inv update //updates player's inv size if changed
Permissions
- extraInventory.use //players need this to open their inventory - extraInventory.rows.1 //use an extra inventory with one row - extraInventory.rows.2 //use an extra inventory with two rows - extraInventory.rows.3 //the size of a single chest!! - extraInventory.rows.4 //use an extra inventory with four rows - extraInventory.rows.5 //use an extra inventory with five rows - extraInventory.rows.6 //the size of a double chest!!! - extraInventory.spy //open and edit other players extra inventory - extraInventory.update //allows use of the update command
TODO
- add config with possible other options. lose inv on death? custom inventory name?
- let me know what you would like to see!
Changelog
- Version 1.0
- initial release!
- Version 1.1
- added use permission to allow per world use
- added update command so relog isn't necessary for inv size changes
Conflicts/Known Limitations/Bugs
- If a player's inventory size is reduced and they relog or the update command
is ran, they will lose all items that will not fit in the new, smaller inventory.
Donate
- never required, but if you want to buy me a beer...
- donate here!
- leave a note so I can say thanks ;)
to fix the "Conflicts/Known Limitations/Bugs" check to see if their are items their and if so then move the items to the lower inventory if that is filled then move them to the player inventory then enderchest plus a notification that that is where they went and then give the player a enderchest with nbt data (your plugin is looking for that block to be placed and when it does get placed and immediately if all the items you put in it are removed remove the chest immediately because enderchests dont grow on trees (you can probably spawn an enderman next to it then teleport it next to it again and again (so it dont move) and also set his anger to 0 so he dont get aggravated lol and then remove the chest and set the block that the enderman is holding to be a enderchest and then have enderman particles spawn around him and then teleport the enderman to bedrock (below where the chest was placed) and kill the enderman with the nbt data do it this way so the enderman is actually killed by keeping him in loaded chunks and well if the players enderchest is filled (well dont do the animation) then just put a shulkerbox with them items.....or just have the items fall on the ground or maybe deny the command to be ran ......just have the items drop on the ground..... or store them and let the user recall them useing a command like "/inv swap 2" to switch the inventory for an unlimited amount
Update 1.12 Pleeeeeeease *_* this is awesome !
Can you add per world support. Like different inventories in different worlds.
Extra inventory does not work on 1.10.2
great job ! Appears to work fine on 1.9.2
You know what you should add? Since this is the only FREE mod which adds somewhat of a pv, you should add commands such as inv 1, 2, 3, 4, 5, 6, 7,... That would be nice :D
can add 1 player has many extra inventories?
@codegreen Thanks for the feedback!
What I did instead was make a /inv update command to update all players inv status so they dont have to log out. I ended up not doing it in the way you suggested because I'm worried that load -> check for upgrade -> save -> (redundant save on inv close) EVERY time a player opens (and the redundant save on close) could pose a performance problem on servers with many players. But I do really appreciate the feedback and made a /inv update command to hopefully take care of the problem in its place :)
Create simple mod, but there is one problem... If someone does from extraInventory.rows.1 to extraInventory.rows.6
they have to log off and back on before they see it. I fixed this and here is the new code if you don't mind
add to MyListener.class
@EventHandler public void onInventoryClose(InventoryCloseEvent e) { Player player = (Player) e.getPlayer(); PlayerConfig.save(player); }
change to commando.class
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player p = (Player)sender; if (((sender instanceof Player)) && (cmd.getName().equalsIgnoreCase("inv"))) { if (args.length == 0) { PlayerConfig.load(p.getPlayer()); VirtualInventory.checkSlotUpgrade(p.getPlayer()); PlayerConfig.save(p.getPlayer()); String pId = p.getUniqueId().toString(); Inventory i = VirtualInventory.getInventory(pId); p.openInventory(i); return true; }if (args.length == 2) { ....