Solved Swap item with off hand event

Discussion in 'Spigot Plugin Development' started by Jalau, Mar 13, 2016.

  1. Is there the possibility to disallow players to swap an item with there off hand by the default keybind "f"?
    Or is there any of the old events being called that I can cancel under specific circumstances?
     
  2. A new event named 'PlayerSwapHandItemsEvent' has been added recently which can be cancelled. Try compiling the Bukkit repo and you are good to go.
     
    • Agree Agree x 1
    • Useful Useful x 1
  3. Aka run BuildTools again.
     
    • Agree Agree x 1
  4. Thanks man :) I'll do that.
     
  5. MiniDigger

    Supporter

    @Jalau be sure to mark this post a solved ;)
     
    • Like Like x 1

Share This Page