move Hot bar

Discussion in 'Spigot Plugin Help' started by AKenus, Jul 6, 2021.

  1. When I move a hotbar, I want it to move to another hotbar's location. How do I do that?
     
  2. Can you explain a bit more? I'm confused.
     
  3. I Think he wants someone's hotbar to mirror another player's hotbar. Maybe this might work
    Bukkit Runnable
    (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
     
  4. Players only have one hotbar. Do you have a gif or video of what you're trying to accomplish?
     
  5.  
    • Funny Funny x 1
  6. 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.