2011-10-09 21:57:43 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
2011-03-22 15:45:41 +01:00
|
|
|
|
2013-04-09 12:56:29 +02:00
|
|
|
import com.massivecraft.factions.Perm;
|
2014-06-04 14:02:23 +02:00
|
|
|
import com.massivecraft.massivecore.cmd.req.ReqHasPerm;
|
2011-03-22 15:45:41 +01:00
|
|
|
|
2014-09-18 13:41:20 +02:00
|
|
|
public class CmdFactionsInvite extends FactionsCommand
|
2011-10-09 14:53:38 +02:00
|
|
|
{
|
2015-01-13 13:50:38 +01:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public CmdFactionsInviteList cmdFactionsInviteList = new CmdFactionsInviteList();
|
|
|
|
public CmdFactionsInviteAdd cmdFactionsInviteAdd = new CmdFactionsInviteAdd();
|
|
|
|
public CmdFactionsInviteRemove cmdFactionsInviteRemove = new CmdFactionsInviteRemove();
|
|
|
|
|
2013-11-11 09:31:04 +01:00
|
|
|
// -------------------------------------------- //
|
|
|
|
// CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
2013-04-10 13:12:22 +02:00
|
|
|
public CmdFactionsInvite()
|
2011-10-09 14:53:38 +02:00
|
|
|
{
|
2013-11-11 09:31:04 +01:00
|
|
|
// Aliases
|
2015-01-13 13:50:38 +01:00
|
|
|
this.addAliases("i", "inv", "invite");
|
|
|
|
|
|
|
|
// Add SubCommands
|
|
|
|
this.addSubCommand(this.cmdFactionsInviteAdd);
|
|
|
|
this.addSubCommand(this.cmdFactionsInviteRemove);
|
|
|
|
this.addSubCommand(this.cmdFactionsInviteList);
|
2013-11-11 09:31:04 +01:00
|
|
|
|
|
|
|
|
|
|
|
// Requirements
|
2013-04-16 10:11:59 +02:00
|
|
|
this.addRequirements(ReqHasPerm.get(Perm.INVITE.node));
|
2011-03-22 15:45:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|