MONaH
Adds a GUI that allows players to quickly sort items into containers

Supported Games
works with

Quick Sort adds a new GUI menu when looting containers and players. Players can choose what type of items they want to put in the container, or even loot all items from the container. Also supports automated looting containers that isn't accepting players items.

Permissions

  • quicksort.use -- Allows player to use Quick Sort UI and features
  • quicksort.lootall -- Allows player use Loot All feature
  • quicksort.autolootall -- Allows player use Automated Loot All feature

Commands

  • /qs on - Enable GUI
  • /qs off - Disable GUI
  • /qs auto - toggle automated looting
  • /qs <s | style> <center | lite | right | custom> - change GUI style
  • /qs <c | conatiner> <main | wear | belt> - add/remove container type from the sort (if they are enabled in the configuration).

Configuration

{
  "Global settings": {
    "Default enabled": true,
    "Default UI style (center, lite, right, custom)": "right",
    "Enable Backpacks plugin support": true,
    "Loot all delay in seconds (0 to disable)": 0,
    "Enable loot all on the sleepers": false,
    "Auto loot all enabled by default": false,
    "Default enabled container types": {
      "Belt": false,
      "Main": true,
      "Wear": false
    },
    "Chat steamID icon": 0,
    "Chat command": [
      "qs",
      "quicksort"
    ],
    "Excluded containers": [
      "autoturret_deployed",
      "dropbox.deployed",
      "flameturret.deployed",
      "guntrap.deployed",
      "sam_site_turret_deployed",
      "sam_static",
      "scientist_turret_any",
      "scientist_turret_lr300",
      "wall.frame.shopfront",
      "wall.frame.shopfront.metal",
      "wall.frame.shopfront.metal.static"
    ]
  },
  "Custom UI Settings": {
    "AnchorsMin": "0.5 1.0",
    "AnchorsMax": "0.5 1.0",
    "OffsetsMin": "192 -137",
    "OffsetsMax": "573 0",
    "Color": "0.5 0.5 0.5 0.33",
    "ButtonsColor": "0.75 0.43 0.18 0.8",
    "LootAllColor": "0.41 0.50 0.25 0.8",
    "TextColor": "0.77 0.92 0.67 0.8",
    "TextSize": 16,
    "CategoriesTextSize": 14
  }
}

Localization

{
  "Deposit": "Deposit",
  "DepositAll": "All",
  "DepositAmmo": "Ammo",
  "DepositAttire": "Attire",
  "DepositConstruction": "Construction",
  "DepositElectrical": "Electrical",
  "DepositExisting": "Existing",
  "DepositFood": "Food",
  "DepositItems": "Deployables",
  "DepositMedical": "Medical",
  "DepositResources": "Resources",
  "DepositTools": "Tools",
  "DepositTraps": "Traps",
  "DepositWeapons": "Weapons",
  "DepositComponents": "Components",
  "DepositMisc": "Misc",
  "LootAll": "Loot All",
  "NotAllowed": "You do not have permission to use this command",
  "Enabled": "<color=#228B22>Enabled</color>",
  "Disabled": "<color=#B22222>Disabled</color>",
  "QuickSort": "Quick Sort GUI is now {0}",
  "Style": "Quick Sort GUI style is now {0}",
  "AutoLootAll": "Automated looting is now {0}",
  "ContainerType": "Quick Sort for container type {0} is now {1}",
  "Prefix": "<color=#00FF00>[Quick Sort]</color>: ",
  "SyntaxError": "List Commands:\n<color=#FFFF00>/{0} on</color> - Enable GUI\n<color=#FFFF00>/{0} off</color> - Disable GUI\n<color=#FFFF00>/{0} auto</color> - Enable/Disable automated looting\n<color=#FFFF00>/{0} <s | style> <center | lite | right | custom></color> - change GUI style\n<color=#FFFF00>/{0} <c | conatiner> <main | wear | belt></color> - add/remove container type from the sort"
}

Credits

  • emu, for the original version of this plugin
  • Wulf, the original author of the re-written version of this plugin

MIT License


Copyright (c) 2019 Wulf


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.