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;
|
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
|
|
|
{
|
|
|
|
this.aliases.add("get");
|
2013-04-09 12:56:29 +02:00
|
|
|
this.permission = 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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|