Adds a sort button to storage boxes, allowing you to sort items by name or category

Supported Games
works with

This plugin add a sort button to storage boxes, allowing you or your teammates to sort by name or category the contents inside of it. When sorting, the plugin will also stack the items.

Permissions

  • sortbutton.use - Users must be granted this permission to use this plugin

Commands

  • /sb - Enable/Disable Sort Button.
  • /sb <sort | type> - change sort type.

Configuration

{
  "Default enabled": true,
  "Default sort by category": true,
  "Check ownership": true,
  "Use Clans": true,
  "Use Friends": true,
  "Use Teams": true,
  "Chat steamID icon": 0,
  "Chat command": [
    "sb",
    "sortbutton"
  ],
  "Containers configuration": {
    "backpack": {
      "OffsetMin": "477 546",
      "OffsetMax": "571 566"
    },
    "box.wooden.large": {
      "OffsetMin": "477 422",
      "OffsetMax": "571 442"
    },
    "coffinstorage": {
      "OffsetMin": "477 546",
      "OffsetMax": "571 566"
    },
    "composter": {
      "OffsetMin": "477 236",
      "OffsetMax": "571 256"
    },
    "cupboard.tool.deployed": {
      "OffsetMin": "477 560",
      "OffsetMax": "572 580"
    },
    "dropbox.deployed": {
      "OffsetMin": "477 236",
      "OffsetMax": "571 256"
    },
    "fridge.deployed": {
      "OffsetMin": "477 422",
      "OffsetMax": "571 442"
    },
    "small_stash_deployed": {
      "OffsetMin": "477 174",
      "OffsetMax": "571 194"
    },
    "vendingmachine.deployed": {
      "OffsetMin": "477 422",
      "OffsetMax": "571 442"
    },
    "woodbox_deployed": {
      "OffsetMin": "477 236",
      "OffsetMax": "571 256"
    }
  }
}

Localization

{
  "Error.NoPermission": "You do not have permission to use this command",
  "Format.ButtonText": "Sort",
  "Format.Category": "<color=#D2691E>Category</color>",
  "Format.Disabled": "<color=#B22222>Disabled</color>",
  "Format.Enabled": "<color=#228B22>Enabled</color>",
  "Format.Name": "<color=#00BFFF>Name</color>",
  "Format.Prefix": "<color=#00FF00>[Sort Button]</color>: ",
  "Info.ButtonStatus": "Sort Button is now {0}",
  "Info.SortType": "Sort Type is now {0}",
  "Info.Help": "List Commands:\n<color=#FFFF00>/{0}</color> - Enable/Disable Sort Button.\n<color=#FFFF00>/{0} <sort | type></color> - change sort type."
}

Credits

  • fullbanner, the original author of this plugin
  • MJSU many thanks for all help

MIT License


Copyright (c) 2019 fullbanner


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.