Skip to content

My first try at making a plugin for minecraft that I want

Notifications You must be signed in to change notification settings

BPCM/InventorySort

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 

Repository files navigation

InventorySort - Sorts your inventory or the chest your looking at.

Version: 1.6.1

Download:

- [InventorySort.zip](http://dl.dropbox.com/u/4299882/Minecraft/InventorySort/1.6.1/InventorySort.zip) - [Jar](http://dl.dropbox.com/u/4299882/Minecraft/InventorySort/StaticUTDjar/InventorySort.jar)

Source:

- [https://github.com/wolfwoodbrbu/InventorySort](https://github.com/wolfwoodbrbu/InventorySort)

InventorySort also works with Permissions 2.0

InventorySort allows you to sort all or part of your inventory ordered on the block/item TypeId number. You can also sort chests in the same manner.

Commands:

  • /sort all - Sorts all of the slots in your inventory(slots 0-35)
  • /sort top - Sorts the "Backpack" slots of your inventory(slots 9-35)
  • /sort 4 35 - Sorts slots 4-35
  • /sort 30 10 - Sorts slots 10-35
  • /sortchest - Sorts all of the slots in a chest or doublechest (alias: /srtc)
  • /sort stack - Toggles whether sorting stack's first (default off) will remember between sessions as long as the server hasn't been restarted.

Permissions:

iSort.basic.all - /sort all command
iSort.basic.top - /sort top command
iSort.basic.range - /sort [0-35] [0-35] command
iSort.basic.chest - /sortchest command
iSort.adv.stack - /sort stack command[/CODE]

Side Note/Thanks:

The plugin Stacks items first then sorts them. This is based from the stack command in WorldGuard. This also used the ItemType.java from it.

To get the chest your looking at I'm using TargetBlock.java from the MySignEdit plugin.

I love open-source!

Known Issues:

  • When sorting a doublechest if you sort the right side of the chest it places the items in the top slots then the bottom slots to fix this right now sort the left chest.(fixed)

Known Bugs:

  • (fixed) Permission's 2.1 bug with commandhandler null error

To Do:

  • Sort the same way if either side of a doublechest is targeted.(done)
  • Permissions and command arguments for the stacking of items not just always stack.(done)
  • Faster sorting Algorithm.
  • Remove TSLPC (done)

Change Log:

v1.2 - 2/18/2011

  • Initial Release to bukkit.org

v1.3 - 2/21/2011

  • [Fixed] doublechest detection
  • [Added] /srtc alias for /sortchest

v1.4 - 2/24/2011

  • [Removed]TSLPC
  • Works on CraftBukkit 435+

v1.5 - 2/25/2011

  • Complete rewrite of the InventorySort to allow for easier expandability.
  • [Fixed] Permissions 2.1 errors
  • Works on CraftBukkit 449+
  • [Added] /sort stack command to toggle stacking

About

My first try at making a plugin for minecraft that I want

Resources

Stars

Watchers

Forks

Packages

No packages published