Be Right Back, Uninstalling
My New Plugin - Printable Version

+- Be Right Back, Uninstalling (https://www.brbuninstalling.com)
+-- Forum: Old Boards (https://www.brbuninstalling.com/forumdisplay.php?fid=8)
+--- Forum: Minecraft (https://www.brbuninstalling.com/forumdisplay.php?fid=44)
+--- Thread: My New Plugin (/showthread.php?tid=5324)



My New Plugin - VeraLapsa - 02-17-2011

InventorySort - Sorts your inventory or the chest your looking at.
Version: 1.6.1
Download: InventorySort v1.6.1.zip(Jar)
Source: https://github.com/wolfwoodbrbu/InventorySort
Needs either Permissions 2.1 or GroupManager

I've also had my plugin added to the CraftBukkitUpToDate plugin.

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.
New in v1.6:
  • Quick Sort algorithm that firs sorts by TypeID, then Damage value(for wool, dye, slabs, logs), and lastly by stack size(So smaller stacks are at the end and easy to find)
  • Configurable stacking:
  • [SPOILER]
Code:
Stack:
      Deafult:
        Enabled: false
      Toggle:
        Enabled: true
      Tools:
        Enabled: false
      Armor:
        Enabled: false
    Chest:
      Wand: 280
    # Users Automatically Added
    Users:
      Wolfwood:
        Stack: true
  • [/SPOILER]
  • A wand for sorting chests. Default is a Stick(280) I suggest if you run BigBrother you change it to a Bone(352) or something else so not to mess with BB.
  • Configurable stacking of Tools and Armor(This will not stack by damage value, so all unused tools will stack behind a used tool)
  • New Permissions for wand "iSort.basic.chest.wand" and command based cest sorting is now "iSort.basic.chest.command"
Permissions:


Code:
iSort.basic.all - /sort all command
iSort.basic.top - /sort top command
iSort.basic.range - /sort [0-35] [0-35] command
iSort.basic.chest.command - /sortchest command
iSort.basic.chest.wand - Wand based chest sorting
iSort.adv.stack - /sort stack command

Side Note/Thanks:

The plugin Stacks items first then sorts them. This is based from the stack command in http://forums.bukkit.org/threads/sec-worldguard-v3-2-2-protect-areas-block-fire-info-about-4-x-available.790/']WorldGuard[/URL]. This also used the ItemType.java from it.

Known Issues:
  • May be a problem with the newer builds of craftbukkit, I'm checking this out.
Known Bugs:
  • None that I personally know of
To Do:
  • Faster sorting Algorithm.
  • Make stacking fully configurable.
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

v1.6 - 3/17/2011
+Now works with GM and Permissions 2.1
+[Added] Configurable
+[Added] Wand sorting of chests
+[Added] Configurable stacking of tools and armor
+[Replaced] Bubble Sort with Quick Sort
+Works with CraftBukkit 542+

v1.6.1 - 3/17/2011
+Changed iSort.basic.chest to iSort.basic.chest.command for better permissions


Re: My New Plugin - demonspork - 02-17-2011

1. Permissions integration - must give people permission to use the command
2. 2 separate configuration options - 1 that allows people to use a version of the command that will also STACK all items and another that will just do a standard sort, following the normal rules of what can and can't be stacked.
3. Post it HERE so that everyone can enjoy your plugin, not just the BRBU bitches.


Re: My New Plugin - PyroZombie - 02-18-2011

Expand it to chests, unless you did, and I'm an idiot.


Re: My New Plugin - VeraLapsa - 02-20-2011

bump
with
http://forums.bukkit.org/threads/gen-inventorysort-v1-2-sorts-your-inventory-or-the-chest-your-looking-at-351.4872/


Re: My New Plugin - VeraLapsa - 03-17-2011

bump lol


Re: My New Plugin - Star Knight - 03-17-2011

Your avatar is very creepy on bukkit's forum. Just saying. O_o

awesome plugin btw


Re: My New Plugin - PyroZombie - 03-19-2011

(03-17-2011, 06:13 PM)Star Knight link Wrote: Your avatar is very creepy on bukkit's forum. Just saying. O_o
Not a Tim Curry fan?