Solved When a Player Right Clicks a Sign

Discussion in 'Plugin Development' started by MasterDoctor, Oct 14, 2014.

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

    MasterDoctor

    When a Player Right Clicks a sign is there any way to store the sign's text in a variable?
     
  2. Offline

    CraftCreeper6

    MasterDoctor
    String string = sign.getLine(line);

    EDIT: Spelling error
     
  3. Offline

    fireblast709

    MasterDoctor
    1. Check if they right clicked a block.
    2. Get the clicked block.
    3. Check if the type is a sign.
    4. Get the state.
    5. Cast to sign.
    6. Get lines.
     
  4. Offline

    MasterDoctor

Thread Status:
Not open for further replies.

Share This Page