Saber-Factions/src/main/java/com/massivecraft/factions/cmd/points/CmdPoints.java

49 lines
1.3 KiB
Java
Raw Normal View History

2019-07-02 03:26:13 +02:00
package com.massivecraft.factions.cmd.points;
2019-07-01 05:22:28 +02:00
2019-07-01 06:30:23 +02:00
import com.massivecraft.factions.SaberFactions;
2019-07-02 03:26:13 +02:00
import com.massivecraft.factions.cmd.FCommand;
2019-07-01 06:30:23 +02:00
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;
2019-07-01 20:11:23 +02:00
senderMustBePlayer = false;
senderMustBeMember = false;
2019-07-01 06:30:23 +02:00
senderMustBeModerator = false;
senderMustBeAdmin = false;
this.addSubCommand(this.cmdPointsAdd);
this.addSubCommand(this.cmdPointsRemove);
this.addSubCommand(this.cmdPointsSet);
}
@Override
public void perform() {
2019-07-08 05:52:58 +02:00
if (!SaberFactions.plugin.getConfig().getBoolean("f-points.Enabled", true)) {
2019-07-01 06:30:23 +02:00
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
}