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

PATTERN_ID: LEFT_TO_RIGHT_TOP_TO_BOTTOM

ID: LEFT_TO_RIGHT_TOP_TO_BOTTOM

PATTERN_ID: RIGHT_TO_LEFT_BOTTOM_TO_TOP

ID: RIGHT_TO_LEFT_BOTTOM_TO_TOP

PATTERN_ID: TOP_TO_BOTTOM_LEFT_TO_RIGHT

ID: TOP_TO_BOTTOM_LEFT_TO_RIGHT

PATTERN_ID: BOTTOM_TO_TOP_LEFT_TO_RIGHT

ID: BOTTOM_TO_TOP_LEFT_TO_RIGHT

Evaluator

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

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

Admin Configuration

  • /sortingconfig adminconfig setdefaultpattern [PATTERN_ID] : Sets the default sorting patter, that gets used if the player sets no preverence with /sortingconfig pattern. Permission: chestcleaner.cmd.sorting.config.admincontrol

  • /sortingconfig adminconfig setdefaultevaluator [EVALUATOR_ID] : Sets the default evaluator, that gets used if the player sets no preverence with /sortingconfig evaluator. Permission: chestcleaner.cmd.sorting.config.admincontrol

Example:

For patterns: /sortingconfig pattern TOP_TO_BOTTOM_LEFT_TO_RIGHT

For evaluators: /sortingconfig evaluator BACK_BEGIN_STRING