Skip to content

Pattern

tom2208 edited this page Jun 23, 2021 · 6 revisions

Description

The sorting pattern is the way the sorted items (sorted by the Categories) are put into the inventory. The images give a visual explanation, which explains it a lot better.

There is a default pattern for the server, but with the correct permission, players may overwrite the pattern for themself.

Patterns

LEFT_TO_RIGHT_TOP_TO_BOTTOM

ID: LEFT_TO_RIGHT_TOP_TO_BOTTOM

RIGHT_TO_LEFT_BOTTOM_TO_TOP

ID: RIGHT_TO_LEFT_BOTTOM_TO_TOP

TOP_TO_BOTTOM_LEFT_TO_RIGHT

ID: TOP_TO_BOTTOM_LEFT_TO_RIGHT

BOTTOM_TO_TOP_LEFT_TO_RIGHT

ID: BOTTOM_TO_TOP_LEFT_TO_RIGHT

Commands

  • /sortingconfig pattern
    • get the currently configured pattern of the player performing the command. Falls back to the default pattern if not set.
  • /sortingconfig pattern <pattern>
    • Sets the pattern of the player performing this command. It will not affect other players.
  • /sortingadmin pattern
    • get the currently configured default pattern for the server.
  • /sortingadmin pattern <pattern>
    • Sets the default pattern for the server. It will affect every player that hasn't overwritten the pattern for themself.

Permissions

  • chestcleaner.cmd.sortingconfig.pattern

    • allow player to overwrite the pattern for themself.
  • chestcleaner.cmd.admin.config

    • allow player to overwrite the default pattern for the server.

Config

  • the default pattern is saved/configured in config.yml
default:
  pattern: LEFT_TO_RIGHT_TOP_TO_BOTTOM
  • the player patterns are saved/configured in playerdata.yml
<player id>:
  pattern: LEFT_TO_RIGHT_TOP_TO_BOTTOM