1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to edit sign ?

Discussion in 'Java' started by cvcv789789, Aug 26, 2018.

  1. cvcv789789

    cvcv789789 New Member

    Joined:
    Aug 15, 2018
    Messages:
    7
    Likes Received:
    0
    @EventHandler
    public void play(PlayerInteractEvent e){
    玩家p = e.getPlayer();
    if(e.getAction()== Action.LEFT_CLICK_BLOCK){
    if(e.getClickedBlock()。getState()instanceof Sign){
    Sign s =(Sign)e.getClickedBlock()。getState();
    p.sendMessage(“一二三”);
    s.setLine(0,“hellow”);
    }
    }
    }

    它不能工作
     
  2. jaylawl

    jaylawl Active Member

    Joined:
    Jan 29, 2017
    Messages:
    173
    Likes Received:
    31
    use
    Code (Text):
    1. code tags
    please
     
  3. jjpwn1

    jjpwn1 Member

    Joined:
    Aug 18, 2018
    Messages:
    12
    Likes Received:
    8
    请用编码的tag。因为你的编码很难看,所以咱们不行帮手你。谢谢。
     

Share This Page

Loading...