@Override
	public void run(CommandSender sender, String maincmd, String[] args)
	{
		if (sender instanceof Player && !sender.hasPermission("mobmanager.pspawn"))
		{
			sender.sendMessage(ChatColor.DARK_RED + "You do not have permission to use /mm spawn");
			return;
		}
		
		if (!super.validArgs(sender, maincmd, args))
			return;
		
		Player player = P.p().getServer().getPlayer(args[3]);
		
		if (player == null || !player.isOnline())
		{
			sender.sendMessage(ChatColor.RED + "~No player named " + args[3] + " online");
			return;
		}
		
		int count = Integer.valueOf(args[2]);
		
		if (args[0].equalsIgnoreCase("pspawn"))
			MMCommandSpawn.spawn(sender, args[1], player.getLocation(), count, true);
		else
			MMCommandSpawn.spawnset(sender, args[1], player.getLocation(), count, true);
	}