Skip to content

Command sortingconfig

tom2208 edited this page Feb 23, 2020 · 10 revisions

Sorting Patterns and Evaluators

A sorting pattern is the path how the algorithm puts the items into the inventory. A Evaluator evaluates the items while sorting. That means which item comes before another item. The difference between a sorting pattern and an evaluator is the evaluator is sorting the list of items and the sorting pattern is the way the items form the list are getting put into the inventory (Examples of Patterns: https://github.com/tom2208/ChestCleaner/wiki/Command-sortingconfig#sorting-patterns-with-ids).

Syntax and Usage

  • /sortingconfig pattern [PATTERN_ID] : Sets the sorting pattern of the player performing this command. It will not effect other players. Permissions of this Command: chestcleaner.cmd.sortingconfig.pattern

  • /sortingconfig evaluator [EVALUATOR_ID] : Sets the evaluator of the player performing this command. It will not effect other players. Permission for this command: chestcleaner.cmd.sortingconfig.evaluator

Sorting Patterns With IDs

ID: LEFT_TO_RIGHT_TOP_TO_BOTTOM

ID: LEFT_TO_RIGHT_TOP_TO_BOTTOM

ID: RIGHT_TO_LEFT_BOTTOM_TO_TOP

ID: RIGHT_TO_LEFT_BOTTOM_TO_TOP

ID: TOP_TO_BOTTOM_LEFT_TO_RIGHT

ID: TOP_TO_BOTTOM_LEFT_TO_RIGHT

ID: BOTTOM_TO_TOP_LEFT_TO_RIGHT

ID: BOTTOM_TO_TOP_LEFT_TO_RIGHT

Evaluator

ID: BACK_BEGIN_STRING (top arrangement) Sorts the items alphabetically beginning with last character.

ID: BEGIN_BACK_STRING (bottom arrangement) Sorts the items alphabetically beginning at the first character.

Example:

For patterns: /sortingconfig pattern TOP_TO_BOTTOM_LEFT_TO_RIGHT

For evaluators: /sortingconfig evaluator BACK_BEGIN_STRING