Block Place Message

Discussion in 'Plugin Development' started by M1K4H, Dec 25, 2022.

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

    M1K4H

    How would i go about sending a message or excuting a specific command when a block was placed for example i place podzol and it brodcasts you win!
     
  2. Offline

    CraftCreeper6

  3. Offline

    DopeBrot

    if you want to try and do it yourself don't click on code.
    CODE (open)

    Code:
    public void foo(BlockPlaceEvent event) {
            if (event.getBlockPlaced().getType() == Material.PODZOL) {
                event.getPlayer().sendMessage("You Win!");
            }
    }
    
     
Thread Status:
Not open for further replies.

Share This Page