Please note that from version 1.5, SwapHotBar will no longer support servers run on old java versions, because I will only provide the jar compiled by java 17 and it can only work on servers run on java 17 or above.
If you really need a SwapHotBar that support older game versions, use SwapHotBar 1.4 or contact me to see if I can help. 
If you like it, click into the source code and give me a star
INTRODUCTION
There are some mods (for example Quark) that allow players to switch between multiple hot bars.
SwapHotBar is a plugin that implement this feature in a simple way, by changing the relationship between hot bar and backpack: each row of player's backpack can be seen as a hot bar, when the player is in the game, using shift + mouse wheel can swap the items in the next row (or previous row) of backpack to the hot bar, while the current hot bar's items will swap back to the backpack, that form a cycle.
In sum, this plugin has the following 2 features:
- Players are able to swap between backpack rows without open the backpack.
- [1.6 new] Players can turn on or turn off this function by themselves
This mechanism is very convenient in the game. The application scenarios include but are not limited to:
- swapping food, weapons, and tools
- swapping tons of building blocks
- quickly searching for an item
- etc...
Just see the following sample inventory and the GIF to understand the usage:
![[IMG]](/proxy/image?url=https%3A%2F%2Fgithub.com%2FKevynTang%2FSwapHotBar%2Fblob%2Fmain%2Fscreenshots%2Fexampleusage.gif%3Fraw%3Dtrue)
USAGES
- Please fully test before use. If you have any problem, please give me feedback as soon as possible.
- Drag to your plugins folder
- If the inventory's slot numbers has been modified, this plugin may have problems.
PERMISSIONS & COMMANDS
There are 2 permissions and 3 commands:
Code (Text):
# players by default have this permission:
shb.switch
# and they can use the following two commands to turn on / off this function:
shb-on
shb-off
# op by default have this permission:
shb.reload
# to reload the config file, type:
shb-reload
CONFIGURATION
Code (Text):
# cooling time(in tick)
# between 2 - 6 is the best I think
# too small,bugs when swap
# too large,bad player experience
swap-interval: 5
# disabled player list
# players can add themselves in by command
ignored-players:
- examplePlayer