delete DisplayPackageCommand
This commit is contained in:
parent
29162b22d9
commit
f4133217be
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user