Repeater Switcher

Discussion in 'Plugin Development' started by edragy, Jul 14, 2012.

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

    edragy

    How do you make it so when you type /switch, then hold a stick, right click on a repeater, and it changes the direction of the repeater?
     
  2. you need a Set<String> for al the player hat it is enabled to
    you need to create an command listener
    you need to create an event listener for the interact event
    you need to see if he is in the set at the listener, and you need to see if he is right clicking on the repeator
    and then you need to set the data of the repeator
     
  3. Offline

    EnvisionRed

    And then (optional, but should save RAM) remove the player from the set.
     
Thread Status:
Not open for further replies.

Share This Page