2014-11-12 11:34:43 +01:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
|
|
|
public class CmdFactionsXPlaceholder extends FactionsCommand
|
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// FIELDS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public String extensionName;
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
public CmdFactionsXPlaceholder(String extensionName, String... aliases)
|
|
|
|
{
|
|
|
|
// Fields
|
|
|
|
this.extensionName = extensionName;
|
2017-02-10 16:38:36 +01:00
|
|
|
this.setSetupEnabled(false);
|
2014-11-12 11:34:43 +01:00
|
|
|
|
|
|
|
// Aliases
|
|
|
|
this.addAliases(aliases);
|
|
|
|
|
|
|
|
// Desc
|
|
|
|
this.setDesc("Use " + extensionName);
|
|
|
|
|
2015-10-21 19:35:41 +02:00
|
|
|
// Parameters
|
|
|
|
this.setOverflowSensitive(false);
|
2014-11-12 11:34:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// OVERRIDE
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void perform()
|
|
|
|
{
|
|
|
|
msg("<b>The extension <h>%s <b>isn't installed.", this.extensionName);
|
|
|
|
msg("<g>Learn more and download the extension here:");
|
2015-11-06 02:10:29 +01:00
|
|
|
msg("<aqua>https://www.massivecraft.com/%s", this.extensionName.toLowerCase());
|
2014-11-12 11:34:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|