Help with field

Discussion in 'Spigot Plugin Development' started by DomiHrajePL, Mar 10, 2019.

  1. Hello, how can I forbid the field when I jump on it?


    - DomiHrajeCZ

    (Sorry for my english!)
  2. what do you exactly mean with "when i jump on it" ?

    You can make fields accessible or what do you wanna do?
  3. I think he wants to stop crop destruction when jumping on a farmland. You can do that by cancelling the PlayerInteractEvent, after checking that the event action is PHYSICAL and that the block involved is a farmland.
    • Agree Agree x 1