public void editShowPreventEntryMessage(Region r, boolean val) { FileConfiguration c = YamlConfiguration.loadConfiguration(rm.getConfigFile(r)); c.set("Region.Messages.ShowPreventEntryMessage", val); r.setShowPreventEntryMessage(val); try { c.save(rm.getConfigFile(r)); } catch (IOException e) { e.printStackTrace(); } }