Factions/src/com/massivecraft/factions/commands/FCommandSaveAll.java

31 lines
575 B
Java
Raw Normal View History

2011-07-18 22:06:02 +02:00
package com.massivecraft.factions.commands;
2011-05-10 19:18:35 +02:00
import org.bukkit.command.CommandSender;
2011-07-18 22:06:02 +02:00
import com.massivecraft.factions.P;
2011-05-10 19:18:35 +02:00
2011-10-08 23:22:02 +02:00
public class FCommandSaveAll extends FCommand {
2011-05-10 19:18:35 +02:00
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 P.hasPermSaveAll(sender);
2011-05-10 19:18:35 +02:00
}
@Override
2011-05-10 19:18:35 +02:00
public void perform() {
P.saveAll();
2011-05-10 19:18:35 +02:00
sendMessage("Factions saved to disk!");
2011-05-10 19:18:35 +02:00
}
}