2012-05-09 03:24:07 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
2013-04-09 12:56:29 +02:00
|
|
|
import com.massivecraft.factions.Perm;
|
2013-04-16 10:11:59 +02:00
|
|
|
import com.massivecraft.mcore.cmd.req.ReqHasPerm;
|
2012-05-09 03:24:07 +02:00
|
|
|
|
2013-04-10 13:12:22 +02:00
|
|
|
public class CmdFactionsCapeGet extends CmdFactionsCapeAbstract
|
2012-05-09 03:24:07 +02:00
|
|
|
{
|
2013-04-10 13:12:22 +02:00
|
|
|
public CmdFactionsCapeGet()
|
2012-05-09 03:24:07 +02:00
|
|
|
{
|
2013-04-16 10:11:59 +02:00
|
|
|
this.addAliases("get");
|
|
|
|
|
|
|
|
this.addRequirements(ReqHasPerm.get(Perm.CAPE_GET.node));
|
2012-05-09 03:24:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform()
|
|
|
|
{
|
|
|
|
if (currentCape == null)
|
|
|
|
{
|
|
|
|
msg("<h>%s <i>has no cape set.", capeFaction.describeTo(fme, true));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
msg("<i>The cape of <h>%s <i>is \"<h>%s<i>\".", capeFaction.describeTo(fme, true), currentCape);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|