Fixing adding aliases to commands.

This commit is contained in:
Olof Larsson
2013-04-16 10:11:59 +02:00
parent 3d9847e4a6
commit 4c0adc523a
45 changed files with 177 additions and 136 deletions

View File

@@ -3,6 +3,7 @@ package com.massivecraft.factions.cmd;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.Perm;
import com.massivecraft.factions.Rel;
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
public class CmdFactionsPromote extends FCommand
{
@@ -10,12 +11,13 @@ public class CmdFactionsPromote extends FCommand
public CmdFactionsPromote()
{
super();
this.aliases.add("promote");
this.addAliases("promote");
this.requiredArgs.add("player name");
//this.optionalArgs.put("", "");
this.permission = Perm.PROMOTE.node;
this.addRequirements(ReqHasPerm.get(Perm.PROMOTE.node));
//To promote someone from recruit -> member you must be an officer.
//To promote someone from member -> officer you must be a leader.