delete DisplayPackageCommand

This commit is contained in:
Spencer 2018-01-07 00:06:07 -05:00 committed by Alexander Meech
parent 29162b22d9
commit f4133217be

View File

@ -1,37 +0,0 @@
package mineplex.staffServer.salespackage.command;
import org.bukkit.entity.Player;
import mineplex.core.command.CommandBase;
import mineplex.staffServer.salespackage.SalesPackageManager;
public class DisplayPackageCommand extends CommandBase<SalesPackageManager>
{
public DisplayPackageCommand(SalesPackageManager plugin)
{
super(plugin, SalesPackageManager.Perm.DISPLAY_PACKAGE_COMMAND, "display");
}
@Override
public void Execute(Player caller, String[] args)
{
if (args == null || args.length < 2)
return;
String playerName = args[0];
String packageName = args[1];
if (args.length > 2)
{
for (int i = 2; i < args.length; i++)
{
packageName += " " + args[i];
}
}
if (packageName.equalsIgnoreCase("ALL"))
Plugin.displaySalesPackages(caller, playerName);
else
Plugin.displayPackage(caller, playerName, packageName);
}
}