Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Help' started by AKenus, Jul 6, 2021.
When I move a hotbar, I want it to move to another hotbar's location. How do I do that?
Can you explain a bit more? I'm confused.
I Think he wants someone's hotbar to mirror another player's hotbar. Maybe this might work
(Player 2).getInventory().setHeldItemSlot((Player 1).getInventory().getHeldItemSlot());
If there was a event that detected hotbar switch that would work better, but I don't think there is
Players only have one hotbar. Do you have a gif or video of what you're trying to accomplish?
Are you talking about the hotbar switching that is possible in creative mode? Those hotbars (except the active one) are saved on the client. You can't access them via the Spigot API.