(HELP) How can i cancel the event?

Discussion in 'Plugin Development' started by AngelopoulosfilmsYT, Oct 25, 2014.

Thread Status:
Not open for further replies.
  1. Code:
    {
        Player o = event.getPlayer();
     
        Action a = event.getAction();
        if ((a == Action.RIGHT_CLICK_AIR || a==Action.RIGHT_CLICK_BLOCK) &&
          (o.getItemInHand().getType() == Material.REDSTONE_TORCH_ON) && (o.hasPermission("use.bow")))
        {
    As you can see i have this code, but when someone click on the block the RedStoneTorch is being placed there all the time. How can i fix that?
     
  2. Offline

    ChipDev

Thread Status:
Not open for further replies.

Share This Page