Solved Check if item is red dye

Discussion in 'Plugin Development' started by xepisolonxx, Jun 15, 2014.

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

    xepisolonxx

    How do i check if red dye is in a players hand.
    Code:
    Player e = event.getPlayer();
            Action a = event.getAction();
              if (a == Action.RIGHT_CLICK_AIR || a == Action.LEFT_CLICK_AIR) {
                  if (e.getItemInHand().getType() == Material.INK_SACK){
     
  2. Offline

    jthort

Thread Status:
Not open for further replies.

Share This Page