ChestSort (+ API) icon

ChestSort (+ API) -----

Sorts your chests + inventory! Supports WorldGuard etc. (100 % customizable + auto config update)



3.3 - fixed API
The API now works as expected. It is possible to sort only specific slots without modifying anything outside of the given slot ranges.

Example usage:
Code (Java):
@Override
    public boolean onCommand ( CommandSender sender, Command arg1, String arg2, String [ ] arg3 ) {
       
        Player p = ( Player ) sender ;
       
        int startSlot = Integer . parseInt ( arg3 [ 0 ] ) ;
        int endSlot = Integer . parseInt ( arg3 [ 1 ] ) ;
       
        JeffChestSortPlugin chestSort = ( JeffChestSortPlugin ) getServer ( ) . getPluginManager ( ) . getPlugin ( "ChestSort" ) ;
       
        if ( chestSort == null || ! ( chestSort instanceof JeffChestSortPlugin ) ) {
            getLogger ( ) . warning ( "ChestSort plugin not found." ) ;
            p. sendMessage ( "ChestSort plugin not found." ) ;
            return true ;
        }
       
        chestSort. sortInventory ( p. getInventory ( ) , startSlot, endSlot ) ;
       
        p. sendMessage ( "Inventory sorted from slot " + startSlot + " till " + endSlot ) ;
       
        return true ;
    }
Thanks @ SnackMix ( https://github.com/SnackMix ) for the pull request
----------, Jan 12, 2019
Resource Information
Author:
----------
Total Downloads: 218,360
First Release: Aug 12, 2018
Last Update: Oct 27, 2024
Category: ---------------
All-Time Rating:
140 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings