Checking if is Block diamond, stone etc.

Discussion in 'Plugin Development' started by WattMann, Mar 24, 2018.

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

    WattMann

    How to check if is Block b stone or diamond?
    I tried:
    PHP:
    Block b e.getBlock;
    if(
    b.equals(Material.STONE)) {
    // code
    }
    but i had unlikely args type warning
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    WattMann

    thanks
     
Thread Status:
Not open for further replies.

Share This Page