Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File Blocks = new File(plugin.getDataFolder() + File.separator + "Blocks" + File.separator + "Blocks.yml");
- FileConfiguration data = YamlConfiguration.loadConfiguration(Blocks);
- data.set("Blocks", e.getBlock().getLocation());
- if(data.contains("Blocks." + e.getBlock().getLocation())) {
- e.setDropItems(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement