Skip to content

ChestSort is a Minecraft plugin that allows players to easily sort both container and player inventories by type, amount, category, or randomly with simple commands.

License

Notifications You must be signed in to change notification settings

Shweit/ChestSorter

Repository files navigation

PollMaster Plugin

Overview

The ChestSort Plugin provides an intuitive way to sort both container inventories (chests, shulker boxes, etc.) and player inventories on your Minecraft server. With this plugin, players can organize their items by type, amount, category, or even shuffle them randomly, all through simple commands.

Features

  • Sorting by Amount: Organizes items in a container based on their total stack size, placing larger stacks first.
  • Sorting Alphabetically: Sorts items in the container based on their names.
  • Sorting by Category: Groups items based on their Minecraft creative categories.
  • Random Shuffle: Randomly shuffles all items in the container.

Commands

/sort <player/coordinates> [sortType]

  • Description: Sorts the items in the specified container or player's inventory based on the specified criteria.
  • Permission: permission.node
  • Example:
    • /sort -> Sorts the Player's inventory alphabetically.
    • /sort Shweit amount -> Sorts the Player's inventory by amount.
    • /sort 0 0 0 category -> Sorts the container at coordinates (0, 0, 0) by category.

Installation

Prerequisites

  • Java: JDK 20 or higher is required to build and run the project.
  • Gradle: Make sure Gradle is installed on your system.

Cloning the Repository

  1. Clone the repository to your local machine.
git clone git@github.com:Shweit/ChestSorter.git
cd ChestSorter

Building the Project

  1. Build the project using Gradle.
gradle build

Setting up the Minecraft Server

  1. Copy the generated JAR file to the plugins directory of your Minecraft server.
cp build/libs/ChestSorter-*.jar /path/to/your/minecraft/server/plugins
  1. Start or restart your Minecraft server.
java -Xmx1024M -Xms1024M -jar paper-1.21.jar nogui
  1. Once the server is running, the plugin will be loaded automatically. You can verify it by running:
/plugins

Contributing

Contributions are welcome! Please read the contributing guidelines to get started.

About

ChestSort is a Minecraft plugin that allows players to easily sort both container and player inventories by type, amount, category, or randomly with simple commands.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages