40 lines
883 B
Java
40 lines
883 B
Java
package com.massivecraft.factions.commands;
|
|
|
|
import com.massivecraft.factions.Board;
|
|
import com.massivecraft.factions.Conf;
|
|
import com.massivecraft.factions.FPlayers;
|
|
import com.massivecraft.factions.Factions;
|
|
import com.massivecraft.factions.struct.Permission;
|
|
|
|
public class FCommandSaveAll extends FCommand
|
|
{
|
|
|
|
public FCommandSaveAll()
|
|
{
|
|
super();
|
|
this.aliases.add("saveall");
|
|
this.aliases.add("save");
|
|
|
|
//this.requiredArgs.add("");
|
|
//this.optionalArgs.put("", "");
|
|
|
|
this.permission = Permission.COMMAND_SAVE.node;
|
|
|
|
senderMustBePlayer = false;
|
|
senderMustBeMember = false;
|
|
senderMustBeModerator = false;
|
|
senderMustBeAdmin = false;
|
|
}
|
|
|
|
@Override
|
|
public void perform()
|
|
{
|
|
FPlayers.i.saveToDisc();
|
|
Factions.i.saveToDisc();
|
|
Board.save();
|
|
Conf.save();
|
|
sendMessageParsed("<i>Factions saved to disk!");
|
|
}
|
|
|
|
}
|