Saber-Factions/src/org/mcteam/factions/commands/FCommandSaveAll.java

29 lines
574 B
Java
Raw Normal View History

2011-05-10 19:18:35 +02:00
package org.mcteam.factions.commands;
import org.bukkit.command.CommandSender;
import org.mcteam.factions.Factions;
public class FCommandSaveAll extends FBaseCommand {
public FCommandSaveAll() {
aliases.add("saveall");
aliases.add("save");
senderMustBePlayer = false;
2011-05-10 19:18:35 +02:00
helpDescription = "save factions to disk";
}
@Override
public boolean hasPermission(CommandSender sender) {
return Factions.hasPermSaveAll(sender);
}
public void perform() {
Factions.saveAll();
sendMessage("Factions saved to disk!");
2011-05-10 19:18:35 +02:00
}
}