Solved How do i fix this bug?

Discussion in 'Spigot Help' started by Peaches_MLG, Jul 1, 2018.

  1. there is this bug where you can break bedrock making an unraidable base, how would you fix this?
     
    • Funny Funny x 1
  2. If you're in to plugin development, you could cancel the BlockFromToEvent when the effected block is bedrock.
     
  3. ill try that now
     
  4. Thanks it worked
     
    • Like Like x 1
  5. Lol can you help me what’s your code? ;)
     
  6. something like this (wrote on my phone)
    Code (Text):
    @EventHandler
    public void onblock(BlockFromToEvent  e){
         if(e.getblock().equals(Material.BEDROCK)){
         e.setcanceled(true);
         }
    }
     
     
    #6 Peaches_MLG, Oct 28, 2018
    Last edited: Oct 28, 2018
  7. Hahaha thanks! Is this the 1.8 API?