Combining Commands with Event

Discussion in 'Plugin Development' started by Fadmad, Jan 27, 2013.

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

    Fadmad

    Lets say I want to combine events with commands. Such as, when I player does "/el", then crouches, and places a block then left clicks it with a rose red, the block is changed into bedrock. Any help with that?

    Thanx
     
  2. Offline

    bryce325

    One way of handling it would be a Hashmap<Player, Int>
    When a player types /el Set Player, 1
    Then when he follows the next action set it to 2
    If his next action is incorrect set it back to 0.
     
Thread Status:
Not open for further replies.

Share This Page