AbsolutSorter

AbsolutSorter 2.0.27

New Config Options Added! New Options will default False; so if you don't need them don't worry about wiping your config!

NEW FEATURES:
LOOT ALL:
A Loot All Button has been added to the sorting box. When pressed, all items that can fit into your inventory will be moved to your inventory. To have this button a player must have AbsolutSorter.LootAll.

Instant Dump Box:
A new box type has been added. To select or use this box type a player must have the permission AbsolutSorter.AllowDump. If a box is designated a Dump Box it will automatically move all available items in your inventory to the Dump Box on loot. This is a really good feature for that box near your entrance that players throw crap in to be later sorted.

CONFIG OPTIONS ADDED:
**public bool AllowALLContainers { get; set; } - This option still exists and if set to true Include_Fridges and Include_Furnaces do not matter because this overrides everything to true.
**public bool Include_Fridges { get; set; } - This controls whether Fridges can have Sorting Box or Dump Box logic attached to it.
**public bool Include_Furnaces { get; set; } - This controls whether Furnaces can have Sorting Box or Dump Box logic attached to it.

Let me know of any bugs. Enjoy!
  • Like
Reactions: MalS and Dubz
Thanks to @maxaki for testing and reporting a few bugs!

Fixed an issue related to the removal of boxes as well as a glitch that would say a box is in use when it really wasn't!

Also added a cooldown for Sorting to prevent lag on the server from malicious spamming of the Sort options.

Added two config options! REFRESH YOUR CONFIG!

Allowed_Sorts_Within_60_Seconds: set the number of sorts a player can execute within 60 seconds. Default is 5; Once they hit the limit they will be told they are on a cooldown and pressing the Sort button will do nothing.

Logging: Set to true if you want to have a log file created and written to if a player exceeds the sorting limit.
  • Like
Reactions: MalS
CHECK THE NEW VIDEO.. if you haven't PLEASE subscribe!

Revamped logic, runs WAY better.

Changed ui button logic so you dont have to feel like you are clicking endlessly to configure a box!

Loading no longer checks for boxes; instead boxes are check on loot (WAY BETTER). Say goodbye to those stupid errors...

Added (2) new sorting options:

Quick - Takes items in your inventory and dumps them in the box. Simple --> Sweet

This - Only take the items from your inventory designated for the box you are looting. Great for situations where you want to place lots of items from your inventory in that sorting box but dont want other things to "disappear" into other sorting boxes you have within radius.
  • Like
Reactions: MalS
Quick fix for the nagging console error.

I am also doing a bit of a code overhaul on this as I think I have a better method for storing the data. Stay tuned for that!
  • Like
Reactions: MalS and Rickne
You can now disable the requirement for a TC to use the Sorter.

Please make sure you wipe your config file!
So I went ahead and made it so you can select "ALL" or specific items from an Item Category. So therefore, you could have one box for AKs, and Bolts and another for Bows, and Crossbows (or whatever).

The logic is simple. If you have an item selected it will only sort that item or items. If you select the "'categoryname All" button it will override those selections and instead sort all of those category items...

It will make more sense when you try it.. lol

upload_2017-5-6_19-35-50.png
  • Like
Reactions: MalS
DISCLAIMER:

I am on vacation and the wireless is so bad that it took me over an hour to update a rust server. After all that, I couldn't ever get Oxide working on either of my test boxes. I am really in a bind so I am hoping this will fix the issue.

I will be home tomorrow and can revisit then if it isn't fixed.

Thanks for the understanding!
When I changed from single Item Category to multiple I missed a spot :/

So sorry for the mistake! Glad we got it before the release tomorrow.

Let me know if you find anything else!
YOU NEED TO UNLOAD THE PLUGIN AND DELETE YOUR OLD DATA FILE.

I found the bug and have fixed it; it was related to dead boxes.

I changed the logic to allow players to select multiple categories per box.

I changed the logic to sort items in the box closest to you versus the random sorting of before.
upload_2017-4-11_12-36-11.png
Added a delay on reload to prevent the out of sync error.

Added a new config option: "AllowALLContainers". Setting this to true allows the sorter to be used on anything that has a container.. basically. Some containers do not seem to work unless you are interacting with them directly (most notably Vending Machines).

Changed some ui colors to green.

Please note the color of the currently selected category is actually in the language file so you can manually change it.