27 lines
542 B
Java
27 lines
542 B
Java
|
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");
|
||
|
|
||
|
helpDescription = "save factions to disk";
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean hasPermission(CommandSender sender) {
|
||
|
return Factions.hasPermSaveAll(sender);
|
||
|
}
|
||
|
|
||
|
public void perform() {
|
||
|
Factions.saveAll();
|
||
|
|
||
|
me.sendMessage("Factions saved to disk!");
|
||
|
}
|
||
|
|
||
|
}
|