001package com.ericlam.mc.bungee.hnmc.config.yaml; 002 003import java.io.IOException; 004 005/** 006 * 用於創建 Config class 時繼承 007 */ 008public abstract class BungeeConfiguration { 009 010 private FileController controller; 011 012 /** 013 * 重載源文件 014 */ 015 public void reload() { 016 controller.reload(this); 017 } 018 019 /** 020 * 保存源文件 021 * 022 * @throws IOException 文件出錯 023 */ 024 public void save() throws IOException { 025 controller.save(this); 026 } 027 028}