2019-07-01 05:22:28 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
2019-07-01 06:30:23 +02:00
|
|
|
import com.massivecraft.factions.SaberFactions;
|
|
|
|
import com.massivecraft.factions.zcore.util.TL;
|
|
|
|
|
2019-07-01 05:22:28 +02:00
|
|
|
public class CmdPoints extends FCommand {
|
|
|
|
|
2019-07-01 06:30:23 +02:00
|
|
|
public CmdPointsRemove cmdPointsRemove = new CmdPointsRemove();
|
|
|
|
public CmdPointsSet cmdPointsSet = new CmdPointsSet();
|
|
|
|
public CmdPointsAdd cmdPointsAdd = new CmdPointsAdd();
|
|
|
|
|
|
|
|
public CmdPoints(){
|
|
|
|
super();
|
|
|
|
this.aliases.add("points");
|
|
|
|
|
|
|
|
this.disableOnLock = false;
|
|
|
|
this.disableOnSpam = false;
|
|
|
|
|
|
|
|
senderMustBePlayer = true;
|
|
|
|
senderMustBeMember = true;
|
|
|
|
senderMustBeModerator = false;
|
|
|
|
senderMustBeAdmin = false;
|
|
|
|
|
|
|
|
|
|
|
|
this.addSubCommand(this.cmdPointsAdd);
|
|
|
|
this.addSubCommand(this.cmdPointsRemove);
|
|
|
|
this.addSubCommand(this.cmdPointsSet);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform() {
|
|
|
|
if (!SaberFactions.plugin.getConfig().getBoolean("f-points.Enabled", false)) {
|
|
|
|
fme.msg(TL.GENERIC_DISABLED);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.commandChain.add(this);
|
|
|
|
SaberFactions.plugin.cmdAutoHelp.execute(this.sender, this.args, this.commandChain);
|
|
|
|
}
|
2019-07-01 05:22:28 +02:00
|
|
|
|
2019-07-01 06:30:23 +02:00
|
|
|
@Override
|
|
|
|
public TL getUsageTranslation() {
|
|
|
|
return TL.COMMAND_POINTS_DESCRIPTION;
|
|
|
|
}
|
2019-07-01 05:22:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
}
|