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.
- 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.
/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.
- Java: JDK 20 or higher is required to build and run the project.
- Gradle: Make sure Gradle is installed on your system.
- Clone the repository to your local machine.
git clone git@github.com:Shweit/ChestSorter.git
cd ChestSorter
- Build the project using Gradle.
gradle build
- Copy the generated JAR file to the
plugins
directory of your Minecraft server.
cp build/libs/ChestSorter-*.jar /path/to/your/minecraft/server/plugins
- Start or restart your Minecraft server.
java -Xmx1024M -Xms1024M -jar paper-1.21.jar nogui
- Once the server is running, the plugin will be loaded automatically. You can verify it by running:
/plugins
Contributions are welcome! Please read the contributing guidelines to get started.