"Scaffold" Plugin help

Discussion in 'Programming' started by levgamer, Jul 11, 2021.

  1. Hi,
    i want to make a scaffold plugin (for a troll plugin),
    but i have done something wrong in the code. I use Spigot API 1.8.8. Also, I’m pretty new to coding and plugins so I’m sorry if this is very stupid.

    Material block = player.getWorld().getBlockAt(x, y-1, z).getType();
    if (block == Material.AIR) {
    block.isBlock(Material.STONE);
    }
     
    #1 levgamer, Jul 11, 2021
    Last edited: Jul 12, 2021
  2. Hello,
    don't use .isBlock.
    use:
    Code (Java):
    block.setType(Material.STONE);
     
  3. Thank you!
     
    • Friendly Friendly x 1
  4. No problem.