Advertisement
Guest User

Untitled

a guest
Oct 9th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement