Guest User

Untitled

a guest
Oct 9th, 2018
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. File Blocks = new File(plugin.getDataFolder() + File.separator + "Blocks" + File.separator + "Blocks.yml");
  2. FileConfiguration data = YamlConfiguration.loadConfiguration(Blocks);
  3. data.set("Blocks", e.getBlock().getLocation());
  4. if(data.contains("Blocks." + e.getBlock().getLocation())) {
  5. e.setDropItems(false);
  6. }
RAW Paste Data