GoldEnchant help

Discussion in 'Plugin Development' started by kman2010, Aug 2, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    kman2010

  2. Offline

    nisovin

    You need to make sure there's actually a block available before checking its type. There's more than one way to do this.

    if (event.getClickedBlock() != null)

    if (event.getAction() == Action.RIGHT_CLICK_BLOCK)

    if (event.hasBlock())
     
Thread Status:
Not open for further replies.

Share This Page