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");
|
|
|
|
|
2011-06-08 23:19:02 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2011-06-21 07:38:31 +02:00
|
|
|
@Override
|
2011-05-10 19:18:35 +02:00
|
|
|
public void perform() {
|
|
|
|
Factions.saveAll();
|
|
|
|
|
2011-06-10 21:26:30 +02:00
|
|
|
sendMessage("Factions saved to disk!");
|
2011-05-10 19:18:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|