package com.massivecraft.factions.cmd; import com.massivecraft.factions.Board; import com.massivecraft.factions.ConfServer; import com.massivecraft.factions.FPlayerColl; import com.massivecraft.factions.FactionColl; import com.massivecraft.factions.Perm; public class CmdSaveAll extends FCommand { public CmdSaveAll() { super(); this.aliases.add("saveall"); this.aliases.add("save"); //this.requiredArgs.add(""); //this.optionalArgs.put("", ""); this.permission = Perm.SAVE.node; this.disableOnLock = false; senderMustBePlayer = false; senderMustBeMember = false; senderMustBeOfficer = false; senderMustBeLeader = false; } @Override public void perform() { FPlayerColl.i.saveToDisc(); FactionColl.i.saveToDisc(); Board.save(); ConfServer.save(); msg("Factions saved to disk!"); } }