Break a sign using SignChangeEvent?

Discussion in 'Plugin Development' started by javoris767, Apr 11, 2013.

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


    How do I break a sign that is placed using SignChangeEvent? I remember doing this once, but I forgot.

    Nvm, I got it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 1, 2016
  2. Offline

    ZeusAllMighty11 Retired Staff

    For anyone who wants to know

    public void onSignChange(SignChangeEvent e){
        e.getBlock().getWorld().dropItemNaturally(Material.SIGN, 1);
    Something like that
  3. Offline


    Or easier with block.breakNaturally().
    devilquak likes this.
Thread Status:
Not open for further replies.

Share This Page